Last change
on this file since 9519422 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | .data
|
---|
2 | L1:.dc.w $FF00
|
---|
3 | .dc.w $FF
|
---|
4 | .text
|
---|
5 | .globl _vtext
|
---|
6 | .text
|
---|
7 | _vtext:
|
---|
8 | ~~vtext:
|
---|
9 | ~obj=R13
|
---|
10 | ~nc=R7
|
---|
11 | ~row=R6
|
---|
12 | ~col=R5
|
---|
13 | ~ip=R12
|
---|
14 | link R14,#0
|
---|
15 | movem.l R4-R7/R11-R13,-(sp)
|
---|
16 | ~op=R11
|
---|
17 | *line 18
|
---|
18 | move.l 8(R14),R13
|
---|
19 | *line 18
|
---|
20 | move 12(R14),R7
|
---|
21 | *line 18
|
---|
22 | move 14(R14),R6
|
---|
23 | *line 18
|
---|
24 | move 16(R14),R5
|
---|
25 | *line 18
|
---|
26 | move.l 18(R14),R12
|
---|
27 | *line 18
|
---|
28 | bra L5
|
---|
29 | L4:
|
---|
30 | *line 19
|
---|
31 | *line 20
|
---|
32 | move.l R13,R11
|
---|
33 | clr R0
|
---|
34 | move R6,R0
|
---|
35 | clr R1
|
---|
36 | move R7,R1
|
---|
37 | lsr #1,R1
|
---|
38 | mulu R1,R0
|
---|
39 | lsl #1,R0
|
---|
40 | swap R0
|
---|
41 | clr R0
|
---|
42 | swap R0
|
---|
43 | add.l R0,R11
|
---|
44 | clr R0
|
---|
45 | move R5,R0
|
---|
46 | lsr #1,R0
|
---|
47 | lsl #1,R0
|
---|
48 | swap R0
|
---|
49 | clr R0
|
---|
50 | swap R0
|
---|
51 | add.l R0,R11
|
---|
52 | *line 21
|
---|
53 | *line 22
|
---|
54 | *line 23
|
---|
55 | clr R0
|
---|
56 | move R5,R0
|
---|
57 | and #1,R0
|
---|
58 | lsl #1,R0
|
---|
59 | swap R0
|
---|
60 | clr R0
|
---|
61 | swap R0
|
---|
62 | move.l R0,R8
|
---|
63 | move.l #L1,R9
|
---|
64 | clr R0
|
---|
65 | move 0(R8,R9.l),R0
|
---|
66 | and (R11),R0
|
---|
67 | move.b (R12)+,R1
|
---|
68 | ext.w R1
|
---|
69 | and #255,R1
|
---|
70 | btst #0,R5
|
---|
71 | beq L10000
|
---|
72 | move #8,R2
|
---|
73 | bra L10002
|
---|
74 | L10000:clr R2
|
---|
75 | L10002:asl R2,R1
|
---|
76 | or R1,R0
|
---|
77 | move R0,(R11)
|
---|
78 | *line 24
|
---|
79 | *line 25
|
---|
80 | add #1,R5
|
---|
81 | L5:
|
---|
82 | *line 26
|
---|
83 | tst.b (R12)
|
---|
84 | bne L4
|
---|
85 | L3:L2:tst.l (sp)+
|
---|
86 | movem.l (sp)+,R5-R7/R11-R13
|
---|
87 | unlk R14
|
---|
88 | rts
|
---|
89 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.