
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































Load Register Instructions
Example 7-1 Load and Store Register Instructions Rel. Loc Obj. code Source line
5 ; Immediate addressing 6 000000 8640 ldaa #64 ; Decimal 64 -> A 7 000002 CF09 02 lds #$0902 ; $0902 -> SP 8 ; Direct addressing 9 000005 D664 ldab $64 ; ($0064) -> B 10 000007 5A65 staa $65 ; A -> ($0065) 11 ; Extended addressing 12 000009 B612 34 ldaa $1234 ; ($1234) -> A 13 00000C FE12 34 ldx $1234 ; ($1234:1235) -> X 14 00000F 7E08 00 stx $0800 ; X -> ($0800) 15 ; Indexed addressing 16 000012 E6E0 17 ldab 23,x ; (X+23) -> B 17 000015 6B40 stab ,y ; B -> (Y) 18 000017 A63E ldaa 2,x- ; (X) -> A 19 ; X-2 -> X (Auto decrement) 20 ; Indexed-indirect addressing 21 000019 EEEF ldx [d,y] ; ((D+Y)) -> X 22 00001B A6E3 0100 ldaa [$100,x]; ((X+$0100)) -> A
Stack Instructions
Uses for the Stack
Simple Stack Example
Calling Subroutines
Calling Subroutines
Clear and Set Instructions