Debian Codegraph @

help/figures/fig0436.peph

raw
1 ;File: fig0436.peph
2 ;Computer Systems, Fourth Edition
3 ;Chapter 4, Figure 4.36
4
5 0000 D1001D ;Load byte accumulator
6 0003 F10009 ;Store byte accumulator
7 0006 C10017 ;A := first number
8 0009 710019 ;Add the two numbers
9 000C A1001B ;Convert sum to character
10 000F F10016 ;Store the character
11 0012 510016 ;Output the character
12 0015 00 ;Stop
13 0016 00 ;Character to output
14 0017 0005 ;Decimal 5
15 0019 0003 ;Decimal 3
16 001B 0030 ;Mask for ASCII char
17 001D 81 ;Byte to modify instruction