Last active
August 29, 2015 13:56
-
-
Save tmiller/8890805 to your computer and use it in GitHub Desktop.
Replace all 4000 memory cells with HLT
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
* My solution | |
MAIN ENT1 0 | |
ENT2 3999 | |
ENTA 133 | |
STA 0,2 | |
DEC2 1 | |
CMP2 7(4:5) | |
JGE 3 | |
MOVE 9(9) | |
CON 9 | |
END MAIN | |
* Answer | |
ORIG 3991 | |
MAIN ENT1 0 | |
MOVE 3995 | |
MOVE 0(43) | |
JMP 3993 | |
HLT 0 | |
END MAIN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment