I would like to ask about making feedline in NASM assembler. At this moment we create simple programs in university.
When I wanted make endline before, I just declared byte and overwrote "0ah" inside. Something like that:
section .text
global _start
_start:
mov eax,4
mov ebx,1
mov ecx,variable
mov edx,1
section .data
variable db 0ah
It works, but takes long time. So I wanted writing "0ah" directly into register, without initialize variable, in this way:
section .text
global _start
_start:
mov eax,4
mov ebx,1
mov ecx,10 ;; hexadecimal 0ah
mov edx,1
But it doesn't works. I would ask for help.
Ps. If anyone have some time, check please my previous thread about registers working: Binary representation in processor's registers in Nasm