OUTAEQU$FFB8 - PowerPoint PPT Presentation

1 / 1
About This Presentation
Title:

OUTAEQU$FFB8

Description:

CPU Registers Used in Program: Memory Locations Used in Program: Computer Screen: ... Z is 0 since Accum A does not equal $04. Does not branch because CCR Z is ... – PowerPoint PPT presentation

Number of Views:12
Avg rating:3.0/5.0
Slides: 2
Provided by: weldi
Category:
Tags: outaequ | cpu | cpuz | ffb8

less

Transcript and Presenter's Notes

Title: OUTAEQU$FFB8


1
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
48
6F
04
65
CCR Z is 1 since Accum A equals 04
CCR Z is 0 since Accum A does not equal 04
0101
0102
1005
0100
0
1
Memory Locations Used in Program
Does not branch because CCR Z is 0
Branch since CCR Z is 1
0100
0101
0102
0103
0104
0105
48
Always Branches
65
Ascii Equivalent of Hello
6C
Computer Screen
6C

H
e
llo
6F
04
Write a Comment
User Comments (0)
About PowerShow.com