; ; termScript.sh ; ; Definitions for the Termite script interface ; ; © 1995 Straylight ; ;----- Termite entry points ------------------------------------------------- ^ 0 termite_makeBeep # 4 ;Bleep at the user ;Entry: -- ;Exit: -- termite_sendRemote # 4 ;Send data to serial port ;Entry: R2 == ptr to block ; R3 == size of block ;Exit: -- termite_reportMessage # 4 ;Report non-multitaskingly ;Entry: R0 == ptr to message ;Exit: -- termite_printMessage # 4 ;Report multitaskingly ;Entry: R0 == ptr to message ;Exit: -- termite_sendLocal # 4 ;Queue bogus input data ;Entry: R2 == ptr to block ; R3 == size (0-256) ;Exit: -- termite_logFileAdd # 4 ;Add to session log ;Entry: R0 == ptr to message ;Exit: -- termite_clearScreen # 4 ;Clear session window ;Entry: -- ;Exit: -- termite_downLoad # 4 ;Download file or files ;Entry: R2 == protocol name ; R3 == dir/file, or 0 ;Exit: -- termite_upLoad # 4 ;Upload file or files ;Entry: R2 == protocol name ; R3 == list of files ;Exit: -- termite_checkCarrier # 4 ;Checks for a carrier ;Entry: -- ;Exit: R0 == 0 if no carrier termite_sysCall # 4 ;Performs a SWI ;Entry: R0-R8 params 2-10 ; R9 param 1 ;Exit: ??? termite_readRemote # 4 ;Gets a byte from the buffer ;Entry: -- ;Exit: R0 == byte, or -1 termite_readLocal # 4 ;Gets a byte from the buffer ;Entry: -- ;Exit: R0 == byte, or -1 termite_clearRemote # 4 ;Clears the input buffer ;Entry: -- ;Exit: -- termite_clearLocal # 4 ;Clears the input buffer ;Entry: -- ;Exit: -- termite_sendBreak # 4 ;Sends a break to the modem ;Entry: -- ;Exit: -- termite_dropCarrier # 4 ;Drops the carrier ;Entry: -- ;Exit: -- termite_finishSession # 4 ;Finishes the current session ;Entry: -- ;Exit: -- termite_newSession # 4 ;Createsa new session ;Entry: R0 == base style name ; R1 == style name ; R2 == see spec! ;Exit: -- termite_checkFinished # 4 ;Check the session is finish ;Entry: -- ;Exit: R0 == not, 1 == is termite_sysNumString # 4 ;Convert string to number ;Entry: R9 == SYSCALL string ;Exit: SYSCALL number, or VS MACRO $label TCALL $call $label MOV R14,PC ADD PC,R11,#$call MEND ;----- That's all, folks ---------------------------------------------------- END