Last change
on this file since 14ad9c9 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
926 bytes
|
Line | |
---|
1 | .globl _Cbuffs
|
---|
2 | .globl _Stdbufs
|
---|
3 | .globl _Stdbuf
|
---|
4 | .globl _fwrite
|
---|
5 | .text
|
---|
6 | _fwrite:
|
---|
7 | ~~fwrite:
|
---|
8 | ~buffer=R13
|
---|
9 | ~size=R7
|
---|
10 | ~number=R6
|
---|
11 | ~stream=R12
|
---|
12 | link R14,#0
|
---|
13 | movem.l R3-R7/R12-R13,-(sp)
|
---|
14 | ~i=R5
|
---|
15 | ~j=R4
|
---|
16 | *line 30
|
---|
17 | move.l 8(R14),R13
|
---|
18 | *line 30
|
---|
19 | move 12(R14),R7
|
---|
20 | *line 30
|
---|
21 | move 14(R14),R6
|
---|
22 | *line 30
|
---|
23 | move.l 16(R14),R12
|
---|
24 | *line 30
|
---|
25 | *line 31
|
---|
26 | tst R7
|
---|
27 | bge L2
|
---|
28 | *line 31
|
---|
29 | clr R0
|
---|
30 | bra L1
|
---|
31 | *line 32
|
---|
32 | L2:
|
---|
33 | *line 33
|
---|
34 | *line 34
|
---|
35 | tst R6
|
---|
36 | bge L3
|
---|
37 | *line 34
|
---|
38 | clr R0
|
---|
39 | bra L1
|
---|
40 | *line 35
|
---|
41 | L3:
|
---|
42 | *line 36
|
---|
43 | clr R5
|
---|
44 | bra L6
|
---|
45 | L7:
|
---|
46 | *line 37
|
---|
47 | clr R4
|
---|
48 | bra L10
|
---|
49 | L11:
|
---|
50 | *line 38
|
---|
51 | *line 39
|
---|
52 | move.l R12,(sp)
|
---|
53 | move.b (R13)+,R0
|
---|
54 | ext.w R0
|
---|
55 | move R0,-(sp)
|
---|
56 | jsr _putc
|
---|
57 | addq.l #2,sp
|
---|
58 | cmp #-1,R0
|
---|
59 | bne L12
|
---|
60 | *line 39
|
---|
61 | move R5,R0
|
---|
62 | bra L1
|
---|
63 | *line 40
|
---|
64 | L12:L9:
|
---|
65 | *line 37
|
---|
66 | add #1,R4
|
---|
67 | L10:
|
---|
68 | *line 37
|
---|
69 | cmp R7,R4
|
---|
70 | blt L11
|
---|
71 | L8:L5:
|
---|
72 | *line 36
|
---|
73 | add #1,R5
|
---|
74 | L6:
|
---|
75 | *line 36
|
---|
76 | cmp R6,R5
|
---|
77 | blt L7
|
---|
78 | L4:
|
---|
79 | *line 41
|
---|
80 | move R6,R0
|
---|
81 | bra L1
|
---|
82 | L1:tst.l (sp)+
|
---|
83 | movem.l (sp)+,R4-R7/R12-R13
|
---|
84 | unlk R14
|
---|
85 | rts
|
---|
86 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.