help/figures/fig0506.pep
raw| 1 | ;File: fig0506.pep |
| 2 | ;Computer Systems, Fourth Edition |
| 3 | ;Figure 5.6 |
| 4 | ; |
| 5 | CHARI 0x000D,d ;Input first character |
| 6 | CHARI 0x000E,d ;Input second character |
| 7 | CHARO 0x000E,d ;Output second character |
| 8 | CHARO 0x000D,d ;Output first character |
| 9 | STOP |
| 10 | .BLOCK 1 ;Storage for first char |
| 11 | .BLOCK 1 ;Storage for second char |
| 12 | .END |