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:
738 bytes
|
Line | |
---|
1 | .globl _Cbuffs
|
---|
2 | .globl _Stdbufs
|
---|
3 | .globl _Stdbuf
|
---|
4 | .globl _getbuff
|
---|
5 | .text
|
---|
6 | _getbuff:
|
---|
7 | ~~getbuff:
|
---|
8 | ~ptr=R13
|
---|
9 | link R14,#-4
|
---|
10 | movem.l R7-R7/R13-R13,-(sp)
|
---|
11 | ~buffer=-4
|
---|
12 | *line 16
|
---|
13 | move.l 8(R14),R13
|
---|
14 | *line 16
|
---|
15 | *line 16
|
---|
16 | cmp #1,16(R13)
|
---|
17 | bne L2
|
---|
18 | *line 17
|
---|
19 | *line 18
|
---|
20 | lea 14(R13),R8
|
---|
21 | move.l R8,8(R13)
|
---|
22 | bra L1
|
---|
23 | *line 19
|
---|
24 | *line 20
|
---|
25 | *line 21
|
---|
26 | L2:
|
---|
27 | *line 22
|
---|
28 | *line 22
|
---|
29 | tst.l _Stdbufs
|
---|
30 | beq L3
|
---|
31 | *line 23
|
---|
32 | *line 24
|
---|
33 | move.l _Stdbufs,-4(R14)
|
---|
34 | *line 25
|
---|
35 | move.l _Stdbufs,R8
|
---|
36 | move.l (R8),_Stdbufs
|
---|
37 | *line 26
|
---|
38 | bra L4
|
---|
39 | L3:
|
---|
40 | *line 27
|
---|
41 | *line 28
|
---|
42 | *line 29
|
---|
43 | lea 14(R13),R8
|
---|
44 | move.l R8,8(R13)
|
---|
45 | *line 30
|
---|
46 | move #1,16(R13)
|
---|
47 | bra L1
|
---|
48 | *line 31
|
---|
49 | L4:
|
---|
50 | *line 34
|
---|
51 | or.b #2,12(R13)
|
---|
52 | *line 35
|
---|
53 | move.l -4(R14),8(R13)
|
---|
54 | bra L1
|
---|
55 | L1:tst.l (sp)+
|
---|
56 | movem.l (sp)+,R13-R13
|
---|
57 | unlk R14
|
---|
58 | rts
|
---|
59 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.