Created
June 17, 2015 16:14
-
-
Save fusspawn/8af0ba5154fa9b1e8a86 to your computer and use it in GitHub Desktop.
This file contains 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
VAR $Y_POS | |
LABEL MAIN | |
INT 99 | |
MOV 1 @r0 | |
ADD | |
MOV @r0 $Y_POS | |
INT 99 | |
MOV $Y_POS @r1 | |
INT 100 | |
MOV 50 @r0 | |
SUB | |
JGZ MAIN | |
MOV 0 @r0 | |
MOV 0 @r1 | |
MOV 0 @r2 | |
INT 100 | |
JMP MAIN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment