Created
November 23, 2013 07:13
-
-
Save djg/7611808 to your computer and use it in GitHub Desktop.
Forthy stack operations.
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
drop: | |
pop %ebx | |
pop %eax | |
jmp *%ebx | |
swap: | |
pop %ebx | |
pop %eax | |
pop %ecx | |
push %eax | |
push %ecx | |
jmp *%ebx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment