Last change
on this file since 0170798 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | .globl _Cbuffs
|
---|
2 | .globl _Stdbufs
|
---|
3 | .globl _Stdbuf
|
---|
4 | .globl _chantab
|
---|
5 | .globl _Wrkbuf
|
---|
6 | .globl _ftell
|
---|
7 | .text
|
---|
8 | _ftell:
|
---|
9 | ~~ftell:
|
---|
10 | ~fp=R13
|
---|
11 | link R14,#0
|
---|
12 | movem.l R4-R7/R11-R13,-(sp)
|
---|
13 | ~fcp=R12
|
---|
14 | ~chp=R11
|
---|
15 | ~dpos=R7
|
---|
16 | ~pos=R6
|
---|
17 | ~diff=R5
|
---|
18 | *line 35
|
---|
19 | move.l 8(R14),R13
|
---|
20 | *line 35
|
---|
21 | *line 35
|
---|
22 | move.l R13,R0
|
---|
23 | bne L2
|
---|
24 | *line 36
|
---|
25 | *line 40
|
---|
26 | *line 41
|
---|
27 | *line 42
|
---|
28 | clr.l R0
|
---|
29 | bra L1
|
---|
30 | *line 43
|
---|
31 | *line 44
|
---|
32 | L2:
|
---|
33 | *line 45
|
---|
34 | *line 45
|
---|
35 | tst.b 12(R13)
|
---|
36 | beq L10000
|
---|
37 | clr R0
|
---|
38 | bra L10001
|
---|
39 | L10000:move #1,R0
|
---|
40 | L10001:and #1,R0
|
---|
41 | beq L3
|
---|
42 | *line 46
|
---|
43 | *line 50
|
---|
44 | *line 51
|
---|
45 | *line 52
|
---|
46 | clr.l R0
|
---|
47 | bra L1
|
---|
48 | *line 53
|
---|
49 | *line 54
|
---|
50 | L3:
|
---|
51 | *line 55
|
---|
52 | move.b 13(R13),R0
|
---|
53 | ext.w R0
|
---|
54 | muls #12,R0
|
---|
55 | move.l R0,R11
|
---|
56 | add.l #_chantab,R11
|
---|
57 | *line 57
|
---|
58 | *line 57
|
---|
59 | move.l 4(R11),R0
|
---|
60 | cmp.l #__filecl,R0
|
---|
61 | beq L4
|
---|
62 | *line 58
|
---|
63 | *line 63
|
---|
64 | *line 64
|
---|
65 | *line 65
|
---|
66 | clr.l R0
|
---|
67 | bra L1
|
---|
68 | *line 66
|
---|
69 | *line 67
|
---|
70 | L4:
|
---|
71 | *line 68
|
---|
72 | move.l 8(R11),R12
|
---|
73 | *line 70
|
---|
74 | clr.l R7
|
---|
75 | move 38(R12),R7
|
---|
76 | move.l 40(R12),R0
|
---|
77 | move.l #$9,R1
|
---|
78 | asl.l R1,R0
|
---|
79 | add.l R0,R7
|
---|
80 | *line 72
|
---|
81 | *line 73
|
---|
82 | btst #2,12(R13)
|
---|
83 | beq L5
|
---|
84 | *line 73
|
---|
85 | move.l (R13),R5
|
---|
86 | sub.l 8(R13),R5
|
---|
87 | move.l R7,R6
|
---|
88 | add.l R5,R6
|
---|
89 | bra L6
|
---|
90 | L5:
|
---|
91 | *line 74
|
---|
92 | *line 75
|
---|
93 | tst.l (R13)
|
---|
94 | beq L7
|
---|
95 | *line 75
|
---|
96 | move.l 4(R13),R5
|
---|
97 | sub.l (R13),R5
|
---|
98 | move.l R7,R6
|
---|
99 | sub.l R5,R6
|
---|
100 | *line 76
|
---|
101 | bra L8
|
---|
102 | L7:
|
---|
103 | *line 77
|
---|
104 | move.l R7,R6
|
---|
105 | L8:L6:
|
---|
106 | *line 95
|
---|
107 | move.l R6,R0
|
---|
108 | bra L1
|
---|
109 | L1:tst.l (sp)+
|
---|
110 | movem.l (sp)+,R5-R7/R11-R13
|
---|
111 | unlk R14
|
---|
112 | rts
|
---|
113 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.