Skip to content

Instantly share code, notes, and snippets.

@dannvix
Created November 11, 2009 15:00
Show Gist options
  • Save dannvix/232007 to your computer and use it in GitHub Desktop.
Save dannvix/232007 to your computer and use it in GitHub Desktop.
INCLUDE Irvine32.inc
.data
text DWORD 10 DUP(?)
.code
main PROC
mov esi, 0
L1:
call ReadDec
mov text[esi], eax
inc esi
cmp eax, 0
jnz L1
L2:
dec esi
mov eax, text[esi]
call WriteDec
call Crlf
cmp esi, 0
jnz L2
main ENDP
END main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment