Last change
on this file since 4810254 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 _vmput
|
---|
2 | .text
|
---|
3 | _vmput:
|
---|
4 | ~~vmput:
|
---|
5 | ~sbase=8
|
---|
6 | ~row=12
|
---|
7 | ~col=14
|
---|
8 | ~ms=16
|
---|
9 | ~ma=20
|
---|
10 | link R14,#-4
|
---|
11 | movem.l R4-R7,-(sp)
|
---|
12 | ~c=R7
|
---|
13 | ~tc=R6
|
---|
14 | ~tr=R5
|
---|
15 | ~cp=-4
|
---|
16 | *line 39
|
---|
17 | move 12(R14),R5
|
---|
18 | *line 41
|
---|
19 | bra L4
|
---|
20 | L3:
|
---|
21 | *line 42
|
---|
22 | *line 43
|
---|
23 | move 14(R14),R6
|
---|
24 | *line 44
|
---|
25 | *line 45
|
---|
26 | bra L7
|
---|
27 | L6:
|
---|
28 | *line 46
|
---|
29 | move 20(R14),(sp)
|
---|
30 | move R7,-(sp)
|
---|
31 | move R6,-(sp)
|
---|
32 | move R5,-(sp)
|
---|
33 | move.l 8(R14),-(sp)
|
---|
34 | jsr _vputc
|
---|
35 | adda.l #10,sp
|
---|
36 | add #1,R6
|
---|
37 | L7:
|
---|
38 | *line 46
|
---|
39 | move.l -4(R14),R8
|
---|
40 | move.b (R8),R0
|
---|
41 | ext.w R0
|
---|
42 | move R0,R7
|
---|
43 | clr R0
|
---|
44 | move R7,R0
|
---|
45 | add.l #1,-4(R14)
|
---|
46 | tst R0
|
---|
47 | bne L6
|
---|
48 | L5:
|
---|
49 | *line 47
|
---|
50 | *line 48
|
---|
51 | add #1,R5
|
---|
52 | L4:
|
---|
53 | *line 49
|
---|
54 | move.l 16(R14),R8
|
---|
55 | move.l (R8),R0
|
---|
56 | move.l R0,-4(R14)
|
---|
57 | add.l #4,16(R14)
|
---|
58 | tst.l R0
|
---|
59 | bne L3
|
---|
60 | L2:L1:tst.l (sp)+
|
---|
61 | movem.l (sp)+,R5-R7
|
---|
62 | unlk R14
|
---|
63 | rts
|
---|
64 | .globl _vmputa
|
---|
65 | .text
|
---|
66 | _vmputa:
|
---|
67 | ~~vmputa:
|
---|
68 | ~sbase=8
|
---|
69 | ~row=12
|
---|
70 | ~col=14
|
---|
71 | ~ms=16
|
---|
72 | ~ma=20
|
---|
73 | link R14,#-8
|
---|
74 | movem.l R4-R7,-(sp)
|
---|
75 | ~c=R7
|
---|
76 | ~tc=R6
|
---|
77 | ~tr=R5
|
---|
78 | ~tm=-4
|
---|
79 | ~cp=-8
|
---|
80 | *line 69
|
---|
81 | move 12(R14),R5
|
---|
82 | *line 71
|
---|
83 | bra L11
|
---|
84 | L10:
|
---|
85 | *line 72
|
---|
86 | *line 73
|
---|
87 | move 14(R14),R6
|
---|
88 | *line 74
|
---|
89 | move.l 20(R14),R8
|
---|
90 | move.l (R8),-4(R14)
|
---|
91 | add.l #4,20(R14)
|
---|
92 | *line 75
|
---|
93 | *line 76
|
---|
94 | bra L14
|
---|
95 | L13:
|
---|
96 | *line 77
|
---|
97 | move.l -4(R14),R8
|
---|
98 | move (R8),(sp)
|
---|
99 | move R7,-(sp)
|
---|
100 | move R6,-(sp)
|
---|
101 | move R5,-(sp)
|
---|
102 | move.l 8(R14),-(sp)
|
---|
103 | jsr _vputc
|
---|
104 | adda.l #10,sp
|
---|
105 | add.l #2,-4(R14)
|
---|
106 | add #1,R6
|
---|
107 | L14:
|
---|
108 | *line 77
|
---|
109 | move.l -8(R14),R8
|
---|
110 | move.b (R8),R0
|
---|
111 | ext.w R0
|
---|
112 | move R0,R7
|
---|
113 | clr R0
|
---|
114 | move R7,R0
|
---|
115 | add.l #1,-8(R14)
|
---|
116 | tst R0
|
---|
117 | bne L13
|
---|
118 | L12:
|
---|
119 | *line 78
|
---|
120 | *line 79
|
---|
121 | add #1,R5
|
---|
122 | L11:
|
---|
123 | *line 80
|
---|
124 | move.l 16(R14),R8
|
---|
125 | move.l (R8),R0
|
---|
126 | move.l R0,-8(R14)
|
---|
127 | add.l #4,16(R14)
|
---|
128 | tst.l R0
|
---|
129 | bne L10
|
---|
130 | L9:L8:tst.l (sp)+
|
---|
131 | movem.l (sp)+,R5-R7
|
---|
132 | unlk R14
|
---|
133 | rts
|
---|
134 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.