Debian Codegraph @

help/figures/exer0804.pep

raw
1 ;File: exer0804.pep
2 ;Computer Systems, Fourth edition
3 ;Exercise 8.4
4 ;
5 BR main ;Branch around data
6 num: .BLOCK 2 ;Global variable
7 main: DECI num,d ;Input decimal value
8 DECO num,d ;Output decimal value
9 CHARO '\n',i
10 STRO msg,d ;Output message
11 STOP
12 msg: .ASCII "That's all.\n\x00"
13 .END