Different approach to open CHTTY
This commit is contained in:
@@ -17,7 +17,8 @@ BPTR==440700 ;Define a byte pointer.
|
||||
CHTTYO==1 ;Define a channel for TTY output.
|
||||
|
||||
START: MOVE P,[-PDLLEN,,PDL-1] ;Initialize the stack.
|
||||
.OPEN CHTTYO,[.UAO,,'TTY] ;Open the output channel.
|
||||
.CALL [SETZ ? SIXBIT/OPEN/
|
||||
[.UAO,,CHTTYO] ? [SIXBIT/TTY/] ((SETZ))]
|
||||
.LOSE %LSFIL ;Gobble up error messages.
|
||||
MOVE A,[BPTR,,HELLO] ;Load A with a byte pointer to HELLO.
|
||||
JRST DONE ;Jump to the end of the program.
|
||||
|
||||
Reference in New Issue
Block a user