Skip to content

Instantly share code, notes, and snippets.

@djg
Created November 20, 2013 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djg/7556935 to your computer and use it in GitHub Desktop.
Save djg/7556935 to your computer and use it in GitHub Desktop.
ryg's version: byte count == 22
# ryg's version
# getchar:
31 C0 # xor eax, eax
50 # push eax
89 E1 # mov ecx, esp
50 # push eax
51 # push ecx
50 # push eax
50 # push eax
B0 03 # mov al, 3
CD 80 # int 80h
85 C0 # test eax, eax
74 05 # je exit
83 C4 10 # add esp, 16
58 # pop eax
C3 # ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment