Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %include "io.inc"
- section .bss
- msg: resw 1
- section .text
- global CMAIN
- CMAIN:
- mov ebp,esp
- GET_STRING msg,4276
- mov ecx,msg
- mov edx,msg
- _push_loop:
- mov al,[ecx]
- cmp al,0
- jz _pop_loop
- push ax
- inc ecx
- jmp _push_loop
- _pop_loop:
- pop ax
- mov [edx],ax
- inc edx
- cmp edx,ecx
- jz _done
- jmp _pop_loop
- _done:
- PRINT_STRING msg
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement