Debian Codegraph @

help/figures/fig0601.pep

raw
1 ;File: fig0601.pep
2 ;Computer Systems, Fourth Edition
3 ;Figure 6.1
4 ;
5 LDA 'B',i ;push B
6 STBYTEA -1,s
7 LDA 'M',i ;push M
8 STBYTEA -2,s
9 LDA 'W',i ;push W
10 STBYTEA -3,s
11 LDA 335,i ;push 335
12 STA -5,s
13 LDA 'i',i ;push i
14 STBYTEA -6,s
15 SUBSP 6,i ;6 bytes on the run-time stack
16 CHARO 5,s ;output B
17 CHARO 4,s ;output M
18 CHARO 3,s ;output W
19 DECO 1,s ;output 335
20 CHARO 0,s ;output i
21 ADDSP 6,i ;deallocate stack storage
22 STOP
23 .END