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:
535 bytes
|
Line | |
---|
1 | .globl _Cbuffs
|
---|
2 | .globl _Stdbufs
|
---|
3 | .globl _Stdbuf
|
---|
4 | .globl _setbuf
|
---|
5 | .text
|
---|
6 | _setbuf:
|
---|
7 | ~~setbuf:
|
---|
8 | ~stream=R13
|
---|
9 | ~buffer=12
|
---|
10 | link R14,#0
|
---|
11 | movem.l R7-R7/R13-R13,-(sp)
|
---|
12 | *line 14
|
---|
13 | move.l 8(R14),R13
|
---|
14 | *line 14
|
---|
15 | *line 15
|
---|
16 | tst.l 8(R13)
|
---|
17 | bne L1
|
---|
18 | *line 16
|
---|
19 | *line 17
|
---|
20 | *line 17
|
---|
21 | tst.l 12(R14)
|
---|
22 | beq L2
|
---|
23 | *line 18
|
---|
24 | *line 19
|
---|
25 | move.l 12(R14),8(R13)
|
---|
26 | *line 20
|
---|
27 | move #1024,16(R13)
|
---|
28 | *line 21
|
---|
29 | bra L3
|
---|
30 | L2:
|
---|
31 | *line 22
|
---|
32 | *line 23
|
---|
33 | *line 24
|
---|
34 | lea 14(R13),R8
|
---|
35 | move.l R8,8(R13)
|
---|
36 | *line 25
|
---|
37 | move #1,16(R13)
|
---|
38 | L3:L1:tst.l (sp)+
|
---|
39 | movem.l (sp)+,R13-R13
|
---|
40 | unlk R14
|
---|
41 | rts
|
---|
42 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.