Last change
on this file since 6099cac was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | .globl _ebflag
|
---|
2 | .globl _ebuf
|
---|
3 | .globl _curfet
|
---|
4 | .globl _cfetp
|
---|
5 | .globl _infetp
|
---|
6 | .globl _cmtype
|
---|
7 | .globl _cxval
|
---|
8 | .globl _cyval
|
---|
9 | .globl _sgcsw
|
---|
10 | .globl _stccol
|
---|
11 | .globl _stcrow
|
---|
12 | .globl _setgc
|
---|
13 | .text
|
---|
14 | _setgc:
|
---|
15 | ~~setgc:
|
---|
16 | ~xv=R7
|
---|
17 | ~yv=R6
|
---|
18 | link R14,#0
|
---|
19 | movem.l R5-R7,-(sp)
|
---|
20 | *line 30
|
---|
21 | move 8(R14),R7
|
---|
22 | *line 30
|
---|
23 | move 10(R14),R6
|
---|
24 | *line 30
|
---|
25 | move R6,(sp)
|
---|
26 | move R7,-(sp)
|
---|
27 | jsr _gcurpos
|
---|
28 | addq.l #2,sp
|
---|
29 | *line 32
|
---|
30 | move R7,_cxval
|
---|
31 | *line 33
|
---|
32 | move R6,_cyval
|
---|
33 | *line 35
|
---|
34 | move R6,R0
|
---|
35 | ext.l R0
|
---|
36 | divs #14,R0
|
---|
37 | move R0,_stcrow
|
---|
38 | *line 36
|
---|
39 | move R7,R0
|
---|
40 | asr #3,R0
|
---|
41 | move R0,_stccol
|
---|
42 | *line 38
|
---|
43 | move #1,_sgcsw
|
---|
44 | *line 39
|
---|
45 | clr _cmtype
|
---|
46 | *line 41
|
---|
47 | *line 42
|
---|
48 | move.l _curfet,(sp)
|
---|
49 | move _stccol,-(sp)
|
---|
50 | move _stcrow,-(sp)
|
---|
51 | jsr _infield
|
---|
52 | addq.l #4,sp
|
---|
53 | tst R0
|
---|
54 | beq L2
|
---|
55 | *line 42
|
---|
56 | move.l _infetp,_cfetp
|
---|
57 | *line 43
|
---|
58 | bra L3
|
---|
59 | L2:
|
---|
60 | *line 44
|
---|
61 | clr.l _cfetp
|
---|
62 | L3:L1:tst.l (sp)+
|
---|
63 | movem.l (sp)+,R6-R7
|
---|
64 | unlk R14
|
---|
65 | rts
|
---|
66 | .globl _settc
|
---|
67 | .text
|
---|
68 | _settc:
|
---|
69 | ~~settc:
|
---|
70 | ~rv=R7
|
---|
71 | ~cv=R6
|
---|
72 | link R14,#0
|
---|
73 | movem.l R5-R7,-(sp)
|
---|
74 | *line 59
|
---|
75 | move 8(R14),R7
|
---|
76 | *line 59
|
---|
77 | move 10(R14),R6
|
---|
78 | *line 59
|
---|
79 | move R6,(sp)
|
---|
80 | move R7,-(sp)
|
---|
81 | jsr _itcpos
|
---|
82 | addq.l #2,sp
|
---|
83 | *line 61
|
---|
84 | move R7,_stcrow
|
---|
85 | *line 62
|
---|
86 | move R6,_stccol
|
---|
87 | *line 64
|
---|
88 | move R7,R0
|
---|
89 | muls #14,R0
|
---|
90 | move R0,_cyval
|
---|
91 | *line 65
|
---|
92 | move R6,R0
|
---|
93 | asl #3,R0
|
---|
94 | move R0,_cxval
|
---|
95 | *line 67
|
---|
96 | clr _sgcsw
|
---|
97 | *line 68
|
---|
98 | move #1,_cmtype
|
---|
99 | *line 70
|
---|
100 | *line 71
|
---|
101 | move.l _curfet,(sp)
|
---|
102 | move _stccol,-(sp)
|
---|
103 | move _stcrow,-(sp)
|
---|
104 | jsr _infield
|
---|
105 | addq.l #4,sp
|
---|
106 | tst R0
|
---|
107 | beq L5
|
---|
108 | *line 71
|
---|
109 | move.l _infetp,_cfetp
|
---|
110 | *line 72
|
---|
111 | bra L6
|
---|
112 | L5:
|
---|
113 | *line 73
|
---|
114 | clr.l _cfetp
|
---|
115 | L6:L4:tst.l (sp)+
|
---|
116 | movem.l (sp)+,R6-R7
|
---|
117 | unlk R14
|
---|
118 | rts
|
---|
119 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.