Last change
on this file since abd4109 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | .globl _vputs
|
---|
2 | .text
|
---|
3 | _vputs:
|
---|
4 | ~~vputs:
|
---|
5 | ~sbase=8
|
---|
6 | ~row=12
|
---|
7 | ~col=14
|
---|
8 | ~str=16
|
---|
9 | ~attrib=20
|
---|
10 | link R14,#-6
|
---|
11 | ~c=-2
|
---|
12 | *line 35
|
---|
13 | bra L4
|
---|
14 | L3:
|
---|
15 | *line 36
|
---|
16 | *line 37
|
---|
17 | move 20(R14),(sp)
|
---|
18 | move -2(R14),-(sp)
|
---|
19 | move 14(R14),-(sp)
|
---|
20 | move 12(R14),-(sp)
|
---|
21 | move.l 8(R14),-(sp)
|
---|
22 | jsr _vputc
|
---|
23 | adda.l #10,sp
|
---|
24 | *line 38
|
---|
25 | *line 39
|
---|
26 | *line 39
|
---|
27 | add #1,14(R14)
|
---|
28 | clr R0
|
---|
29 | move 14(R14),R0
|
---|
30 | cmp #64,R0
|
---|
31 | blo L5
|
---|
32 | *line 40
|
---|
33 | *line 41
|
---|
34 | clr 14(R14)
|
---|
35 | *line 42
|
---|
36 | *line 43
|
---|
37 | *line 44
|
---|
38 | add #1,12(R14)
|
---|
39 | clr R0
|
---|
40 | move 12(R14),R0
|
---|
41 | cmp #25,R0
|
---|
42 | blo L6
|
---|
43 | *line 44
|
---|
44 | clr 12(R14)
|
---|
45 | L6:
|
---|
46 | *line 45
|
---|
47 | L5:L4:
|
---|
48 | *line 46
|
---|
49 | move.l 16(R14),R8
|
---|
50 | move.b (R8),R0
|
---|
51 | ext.w R0
|
---|
52 | move R0,-2(R14)
|
---|
53 | add.l #1,16(R14)
|
---|
54 | tst R0
|
---|
55 | bne L3
|
---|
56 | L2:L1:unlk R14
|
---|
57 | rts
|
---|
58 | .globl _vputsa
|
---|
59 | .text
|
---|
60 | _vputsa:
|
---|
61 | ~~vputsa:
|
---|
62 | ~sbase=8
|
---|
63 | ~row=12
|
---|
64 | ~col=14
|
---|
65 | ~str=16
|
---|
66 | ~attrib=20
|
---|
67 | link R14,#-6
|
---|
68 | ~c=-2
|
---|
69 | *line 66
|
---|
70 | bra L10
|
---|
71 | L9:
|
---|
72 | *line 67
|
---|
73 | *line 68
|
---|
74 | move.l 20(R14),R8
|
---|
75 | move (R8),(sp)
|
---|
76 | move -2(R14),-(sp)
|
---|
77 | move 14(R14),-(sp)
|
---|
78 | move 12(R14),-(sp)
|
---|
79 | move.l 8(R14),-(sp)
|
---|
80 | jsr _vputc
|
---|
81 | adda.l #10,sp
|
---|
82 | add.l #2,20(R14)
|
---|
83 | *line 69
|
---|
84 | *line 70
|
---|
85 | *line 70
|
---|
86 | add #1,14(R14)
|
---|
87 | clr R0
|
---|
88 | move 14(R14),R0
|
---|
89 | cmp #64,R0
|
---|
90 | blo L11
|
---|
91 | *line 71
|
---|
92 | *line 72
|
---|
93 | clr 14(R14)
|
---|
94 | *line 73
|
---|
95 | *line 74
|
---|
96 | *line 75
|
---|
97 | add #1,12(R14)
|
---|
98 | clr R0
|
---|
99 | move 12(R14),R0
|
---|
100 | cmp #25,R0
|
---|
101 | blo L12
|
---|
102 | *line 75
|
---|
103 | clr 12(R14)
|
---|
104 | L12:
|
---|
105 | *line 76
|
---|
106 | L11:L10:
|
---|
107 | *line 77
|
---|
108 | move.l 16(R14),R8
|
---|
109 | move.b (R8),R0
|
---|
110 | ext.w R0
|
---|
111 | move R0,-2(R14)
|
---|
112 | add.l #1,16(R14)
|
---|
113 | tst R0
|
---|
114 | bne L9
|
---|
115 | L8:L7:unlk R14
|
---|
116 | rts
|
---|
117 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.