another problem in assembly
I am trying to write a program in assembly(nasm) but I just don't know how to write a procedure. I tried with this code but it just doesn't work:
section .data section .text global _test:proc proc _test mov ax,1 endproc global _start _start: mov ebx,0 mov eax,1 int 0x80 Could someone tell me what is wrong and how can I fix this? Thanks! |
This post is kinda old, so i bet you already figured it out...but if not, I suggest you read chapter 4 of dr carter's pdf "pc assembly" available at http://www.drpaulcarter.com/pcasm/
There is a program that uses procedures to print out "Hello" using kernel services (int 0x80). Code:
section .data nasm test.asm -f elf ld test.o -o test |
All times are GMT -5. The time now is 12:37 PM. |