Hey guys, I am new to assembly and I am having a problem compling the code.
section .text global _start _start: xor eax,eax push eax push dword 0x71242776 push dword 0x76747977 push esp pop esi mov edi,esi mov edx,edi cld mov ecx,0x80 mov ebx,0x41 xor eax,eax push eax lodsb xor eax,eax stosb loop 0xb7 push esp pop esi mov eax,4 mov ebx, 1 int 80h _exit: mov eax,1 mov ebx,0 int 80h
It errors out after it tries to compile
yo.asm:22: error: short relative jump outside segment
yo.asm:22: error: short jump is out of range
Not sure what the problem is. I think its the loop but for some reason when I take it out it compiles but does not display the varible.
Thanks for the help