.Title Ttyiomacs - Define TTYIO package as macros. ;+ ; ; Written By Kevin Carosso ; ; Harvey Mudd College ; ; This file may be used to generate a macro ; library. To use the TTYIO macros, you must ; include the library with a .LIBRARY state- ; ment. Invoking _TTYIODEF first will ensure ; that the external entry points get defined. ; ;- .Macro _Ttyiodef .Extrn _Inchwl .Extrn _Outchr .Extrn _Outstr .Extrn _Inchrw .Extrn _Getlch .Extrn _Setlch .Extrn _Clrbfi .Endm ;Now for our terminal I/O macros: .Macro Rescan calls #0,_Rescan .Endm .Macro Outchr char pushab char calls #1,_Outchr .Endm .Macro Inchwl char pushab char calls #1,_Inchwl .Endm .Macro Outstr String pushab string calls #1,_Outstr .Endm .Macro Inchrw char pushab char calls #1,_Inchrw .Endm .Macro Getlch iomask pushal iomask calls #1,_Getlch .Endm .Macro Setlch iomask pushal iomask calls #1,_Setlch .Endm .Macro Clrbfi calls #0,_Clrbfi .Endm