Created
November 20, 2013 02:58
-
-
Save djg/7556935 to your computer and use it in GitHub Desktop.
ryg's version: byte count == 22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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