22 lines
469 B
Plaintext
22 lines
469 B
Plaintext
TITLE G018 - Program to type "Hi". Example 1
|
|
|
|
Comment $ Example 1. Program to type "Hi"
|
|
|
|
The following program types "Hi" and carriage return line feed (CRLF)
|
|
on the terminal.
|
|
|
|
Gorin, p. 18
|
|
|
|
$
|
|
|
|
SEARCH MONSYM ;Add TOPS-20 symbols to MACRO
|
|
|
|
START: RESET ;RESET the state of I/O devices
|
|
HRROI 1,MESAGE ;Copy address of message to register 1
|
|
PSOUT ;Output the message
|
|
HALTF ;Stop execution here.
|
|
|
|
MESAGE: ASCIZ /Hi
|
|
/
|
|
END START ;End of program, start at START
|