Initial revision
[ssr] / StraySrc / Libraries / Sapphire / sail / _sh / upcalls
1 ;
2 ; termScript.sh
3 ;
4 ; Definitions for the Termite script interface
5 ;
6 ; © 1995 Straylight
7 ;
8
9 ;----- Termite entry points -------------------------------------------------
10
11 ^ 0
12 termite_makeBeep # 4 ;Bleep at the user
13 ;Entry: --
14 ;Exit: --
15
16 termite_sendRemote # 4 ;Send data to serial port
17 ;Entry: R2 == ptr to block
18 ; R3 == size of block
19 ;Exit: --
20
21 termite_reportMessage # 4 ;Report non-multitaskingly
22 ;Entry: R0 == ptr to message
23 ;Exit: --
24
25 termite_printMessage # 4 ;Report multitaskingly
26 ;Entry: R0 == ptr to message
27 ;Exit: --
28
29 termite_sendLocal # 4 ;Queue bogus input data
30 ;Entry: R2 == ptr to block
31 ; R3 == size (0-256)
32 ;Exit: --
33
34 termite_logFileAdd # 4 ;Add to session log
35 ;Entry: R0 == ptr to message
36 ;Exit: --
37
38 termite_clearScreen # 4 ;Clear session window
39 ;Entry: --
40 ;Exit: --
41
42 termite_downLoad # 4 ;Download file or files
43 ;Entry: R2 == protocol name
44 ; R3 == dir/file, or 0
45 ;Exit: --
46
47 termite_upLoad # 4 ;Upload file or files
48 ;Entry: R2 == protocol name
49 ; R3 == list of files
50 ;Exit: --
51
52 termite_checkCarrier # 4 ;Checks for a carrier
53 ;Entry: --
54 ;Exit: R0 == 0 if no carrier
55
56 termite_sysCall # 4 ;Performs a SWI
57 ;Entry: R0-R8 params 2-10
58 ; R9 param 1
59 ;Exit: ???
60
61 termite_readRemote # 4 ;Gets a byte from the buffer
62 ;Entry: --
63 ;Exit: R0 == byte, or -1
64
65 termite_readLocal # 4 ;Gets a byte from the buffer
66 ;Entry: --
67 ;Exit: R0 == byte, or -1
68
69 termite_clearRemote # 4 ;Clears the input buffer
70 ;Entry: --
71 ;Exit: --
72
73 termite_clearLocal # 4 ;Clears the input buffer
74 ;Entry: --
75 ;Exit: --
76
77 termite_sendBreak # 4 ;Sends a break to the modem
78 ;Entry: --
79 ;Exit: --
80
81 termite_dropCarrier # 4 ;Drops the carrier
82 ;Entry: --
83 ;Exit: --
84
85 termite_finishSession # 4 ;Finishes the current session
86 ;Entry: --
87 ;Exit: --
88
89 termite_newSession # 4 ;Createsa new session
90 ;Entry: R0 == base style name
91 ; R1 == style name
92 ; R2 == see spec!
93 ;Exit: --
94
95 termite_checkFinished # 4 ;Check the session is finish
96 ;Entry: --
97 ;Exit: R0 == not, 1 == is
98
99 termite_sysNumString # 4 ;Convert string to number
100 ;Entry: R9 == SYSCALL string
101 ;Exit: SYSCALL number, or VS
102
103 MACRO
104 $label TCALL $call
105 $label MOV R14,PC
106 ADD PC,R11,#$call
107 MEND
108
109 ;----- That's all, folks ----------------------------------------------------
110
111 END
112