Last change
on this file since de91266 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
2.3 KB
|
Line | |
---|
1 | .globl _ebflag
|
---|
2 | .globl _ebuf
|
---|
3 | .globl _curfet
|
---|
4 | .globl _cfetp
|
---|
5 | .globl _infetp
|
---|
6 | .globl _tunob
|
---|
7 | .globl _stcrow
|
---|
8 | .globl _stccol
|
---|
9 | .globl _curtun
|
---|
10 | .globl _tunmod
|
---|
11 | .globl _tdbox
|
---|
12 | .globl _dspbuf
|
---|
13 | .globl _et_ttab
|
---|
14 | .text
|
---|
15 | _et_ttab:
|
---|
16 | ~~et_ttab:
|
---|
17 | ~n=8
|
---|
18 | link R14,#-4
|
---|
19 | *line 39
|
---|
20 | move _curtun,(sp)
|
---|
21 | move.l #L2,-(sp)
|
---|
22 | move.l #_ebuf,-(sp)
|
---|
23 | jsr _sprintf
|
---|
24 | addq.l #8,sp
|
---|
25 | *line 40
|
---|
26 | move #1,_ebflag
|
---|
27 | *line 42
|
---|
28 | clr R0
|
---|
29 | bra L1
|
---|
30 | L1:unlk R14
|
---|
31 | rts
|
---|
32 | .globl _ef_ttab
|
---|
33 | .text
|
---|
34 | _ef_ttab:
|
---|
35 | ~~ef_ttab:
|
---|
36 | ~n=8
|
---|
37 | link R14,#0
|
---|
38 | movem.l R5-R7,-(sp)
|
---|
39 | ~i=R7
|
---|
40 | ~tmpval=R6
|
---|
41 | *line 57
|
---|
42 | clr.b 1+_ebuf
|
---|
43 | *line 58
|
---|
44 | clr _ebflag
|
---|
45 | *line 60
|
---|
46 | move.b _ebuf,R0
|
---|
47 | ext.w R0
|
---|
48 | add #-48,R0
|
---|
49 | move R0,_curtun
|
---|
50 | *line 61
|
---|
51 | jsr _modtun
|
---|
52 | *line 62
|
---|
53 | move #54,(sp)
|
---|
54 | move #22,-(sp)
|
---|
55 | jsr _settc
|
---|
56 | addq.l #2,sp
|
---|
57 | *line 63
|
---|
58 | clr R0
|
---|
59 | bra L3
|
---|
60 | L3:tst.l (sp)+
|
---|
61 | movem.l (sp)+,R6-R7
|
---|
62 | unlk R14
|
---|
63 | rts
|
---|
64 | .globl _rd_ttab
|
---|
65 | .text
|
---|
66 | _rd_ttab:
|
---|
67 | ~~rd_ttab:
|
---|
68 | ~nn=8
|
---|
69 | link R14,#0
|
---|
70 | movem.l R6-R7,-(sp)
|
---|
71 | ~n=R7
|
---|
72 | *line 81
|
---|
73 | move 8(R14),R7
|
---|
74 | and #255,R7
|
---|
75 | *line 82
|
---|
76 | move _curtun,(sp)
|
---|
77 | move.l #L5,-(sp)
|
---|
78 | move.l #_dspbuf,-(sp)
|
---|
79 | jsr _sprintf
|
---|
80 | addq.l #8,sp
|
---|
81 | *line 84
|
---|
82 | clr (sp)
|
---|
83 | jsr _vbank
|
---|
84 | *line 85
|
---|
85 | *line 86
|
---|
86 | move #14,(sp)
|
---|
87 | move.l #_dspbuf,-(sp)
|
---|
88 | move #61,-(sp)
|
---|
89 | move #24,-(sp)
|
---|
90 | move R7,R0
|
---|
91 | asl #4,R0
|
---|
92 | ext.l R0
|
---|
93 | move.l R0,R8
|
---|
94 | move.l #_tdbox,R9
|
---|
95 | move 10(R8,R9.l),-(sp)
|
---|
96 | tst _tunmod
|
---|
97 | beq L10000
|
---|
98 | move #14,-(sp)
|
---|
99 | bra L10002
|
---|
100 | L10000:move R7,R0
|
---|
101 | asl #4,R0
|
---|
102 | ext.l R0
|
---|
103 | move.l R0,R8
|
---|
104 | move.l #_tdbox,R9
|
---|
105 | move 8(R8,R9.l),-(sp)
|
---|
106 | L10002:move #64,-(sp)
|
---|
107 | move.l _tunob,-(sp)
|
---|
108 | jsr _vcputsv
|
---|
109 | adda.l #18,sp
|
---|
110 | *line 88
|
---|
111 | clr R0
|
---|
112 | bra L4
|
---|
113 | L4:tst.l (sp)+
|
---|
114 | movem.l (sp)+,R7-R7
|
---|
115 | unlk R14
|
---|
116 | rts
|
---|
117 | .globl _nd_ttab
|
---|
118 | .text
|
---|
119 | _nd_ttab:
|
---|
120 | ~~nd_ttab:
|
---|
121 | ~k=R7
|
---|
122 | ~nn=8
|
---|
123 | link R14,#0
|
---|
124 | movem.l R5-R7,-(sp)
|
---|
125 | ~n=R6
|
---|
126 | *line 104
|
---|
127 | move 10(R14),R7
|
---|
128 | *line 104
|
---|
129 | move 8(R14),R6
|
---|
130 | and #255,R6
|
---|
131 | *line 106
|
---|
132 | move R7,R0
|
---|
133 | add #48,R0
|
---|
134 | move.b R0,_ebuf
|
---|
135 | *line 107
|
---|
136 | clr.b 1+_ebuf
|
---|
137 | *line 109
|
---|
138 | move R7,R0
|
---|
139 | add #48,R0
|
---|
140 | move.b R0,_dspbuf
|
---|
141 | *line 110
|
---|
142 | clr.b 1+_dspbuf
|
---|
143 | *line 112
|
---|
144 | clr (sp)
|
---|
145 | jsr _vbank
|
---|
146 | *line 113
|
---|
147 | move #14,(sp)
|
---|
148 | move.l #_dspbuf,-(sp)
|
---|
149 | move _stccol,-(sp)
|
---|
150 | move _stcrow,-(sp)
|
---|
151 | move R6,R0
|
---|
152 | asl #4,R0
|
---|
153 | ext.l R0
|
---|
154 | move.l R0,R8
|
---|
155 | move.l #_tdbox,R9
|
---|
156 | move 10(R8,R9.l),-(sp)
|
---|
157 | move #12,-(sp)
|
---|
158 | move #64,-(sp)
|
---|
159 | move.l _tunob,-(sp)
|
---|
160 | jsr _vcputsv
|
---|
161 | adda.l #18,sp
|
---|
162 | *line 115
|
---|
163 | clr R0
|
---|
164 | bra L6
|
---|
165 | L6:tst.l (sp)+
|
---|
166 | movem.l (sp)+,R6-R7
|
---|
167 | unlk R14
|
---|
168 | rts
|
---|
169 | .data
|
---|
170 | L2:.dc.b $25,$64,$0
|
---|
171 | L5:.dc.b $25,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.