Debian Codegraph @

help/figures/fig0507.pep

raw
1 ;File: fig0507.pep
2 ;Computer Systems, Fourth Edition
3 ;Figure 5.7
4 ;
5 LDA 0x0011,d ;A <- first number
6 ADDA 0x0013,d ;Add the two numbers
7 ORA 0x0015,d ;Convert sum to character
8 STBYTEA 0x0010,d ;Store the character
9 CHARO 0x0010,d ;Output the character
10 STOP
11 .BLOCK 1 ;Character to output
12 .WORD 5 ;Decimal 5
13 .WORD 3 ;Decimal 3
14 .WORD 0x0030 ;Mask for ASCII char
15 .END