Skip to content

Instantly share code, notes, and snippets.

@b-adams
Created July 30, 2012 17:50
Show Gist options
  • Save b-adams/3208671 to your computer and use it in GitHub Desktop.
Save b-adams/3208671 to your computer and use it in GitHub Desktop.
CS225 Day 4 notes
-------------------------------------------------------------------------------
Object
Addr code Symbol Mnemon Operand Comment
-------------------------------------------------------------------------------
0000 C1000D LDA 0x000D,d ;Load Num1 to A
0003 C9000F LDX 0x000F,d ;Load Num2 to X (not needed to do next op!)
0006 71000F ADDA 0x000F,d ;Add Num2 to contents of A (leave in A)
0009 E10111 STA 0x0111,d ;store result in Result space
000C 00 STOP
000D 1234 .WORD 0x1234 ;Num1
000F 2345 .WORD 0x2345 ;Num2
0011 FEFE .WORD 0xFEFE ;space for Result
0013 .END
-------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment