Skip to content

Instantly share code, notes, and snippets.

@tmiller
Last active August 29, 2015 13:56
Show Gist options
  • Save tmiller/8890805 to your computer and use it in GitHub Desktop.
Save tmiller/8890805 to your computer and use it in GitHub Desktop.
Replace all 4000 memory cells with HLT
* 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