Presentation is loading. Please wait.

Presentation is loading. Please wait.

Accum A: Index X: CCR Bit Z: $0100 $0101 $0102 $0103 $0104 $0105

Similar presentations


Presentation on theme: "Accum A: Index X: CCR Bit Z: $0100 $0101 $0102 $0103 $0104 $0105"— Presentation transcript:

1 Accum A: Index X: CCR Bit Z: $0100 $0101 $0102 $0103 $0104 $0105
Program Initialization Skip Ahead Until Last Loop CPU Registers Used in Program: OUTA EQU $FFB8 ORG $0100 FCC “Hello” FCB #$04 ORG $1040 LDX #$0100 Loop LDAA $00,X CMPA #$04 BEQ Quit JSR OUTA INX BRA Loop Quit SWI END Accum A: Index X: CCR Bit Z: #$6F #$65 #$04 #$48 CCR Z is 1 since Accum A equals $04 CCR Z is 0 since Accum A does not equal $04 #$1005 #$0100 #$0101 #$0102 1 Memory Locations Used in Program: Branch since CCR Z is 1 Does not branch because CCR Z is 0 $0100 $0101 $0102 $0103 $0104 $0105 $48 Always Branches $65 Ascii Equivalent of “Hello” $6C Computer Screen: $6C H e llo $6F $04


Download ppt "Accum A: Index X: CCR Bit Z: $0100 $0101 $0102 $0103 $0104 $0105"

Similar presentations


Ads by Google