Created
November 23, 2013 04:16
-
-
Save katejenkins/7610714 to your computer and use it in GitHub Desktop.
"Start putting program code in memory location $0000"
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
Hmm, last section of notes didn't save? | |
loop_variable EQU $C880 ;Create a variable for looping | |
These two goto types are unconditional | |
JMP = jump (>127b away) | |
BRA = branch (within 127b) | |
(LBRA = long branch) (but relative) | |
while JMP is absolute | |
don't mix relative and absolute jumps to the same location | |
JSR = jump to subroutine | |
BSR = branch to subroutine | |
RTS = return from subroutine | |
These are conditional: | |
CC (condition code) bits are: | |
H = half carry | |
N = negative | |
Z = zero | |
V = overflow | |
C = carry | |
BEQ = branch on equal | |
BNE = branch not equal (branches only if the zero bit is not set) | |
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
ORG $0000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment