Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global _ASM_main ; int ASM_main(int argc, char *argv[]);
- extern _printf
- segment .data align=16
- lineNumStr db `line number %d \n`
- segment .text align=16
- %define i ebx
- _ASM_main:
- push i
- sub esp, 8
- xor i, i
- .loop:
- sub esp, 8
- push i
- push lineNumStr
- call _printf
- inc i
- add esp, 16
- cmp i, 50
- jne .loop
- xor eax, eax
- add esp, 8
- pop i
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement