Debian Codegraph @

help/figures/prob0832.pep

raw
1 ;File: prob0832.pep
2 ;Computer Systems, Fourth edition
3 ;Problem 8.32
4 ;
5 LDA 5,i ;Push 5
6 STA -2,s
7 LDA 9,i ;Push 9
8 STA -4,s
9 SUBSP 4,i
10 STACKADD ;Add 5 + 9
11 DECO 0,s ;Output top of stack
12 ADDSP 2,i ;Pop the sum
13 STOP
14 .END