Last change
on this file since 4b63bf3 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
538 bytes
|
Line | |
---|
1 | .globl _Cbuffs
|
---|
2 | .globl _Stdbufs
|
---|
3 | .globl _Stdbuf
|
---|
4 | .globl _getl
|
---|
5 | .text
|
---|
6 | _getl:
|
---|
7 | ~~getl:
|
---|
8 | ~stream=R13
|
---|
9 | link R14,#-4
|
---|
10 | movem.l R7-R7/R12-R13,-(sp)
|
---|
11 | ~temp=-4
|
---|
12 | ~t=R12
|
---|
13 | *line 28
|
---|
14 | move.l 8(R14),R13
|
---|
15 | *line 28
|
---|
16 | lea -4(R14),R12
|
---|
17 | *line 30
|
---|
18 | move.l R13,(sp)
|
---|
19 | jsr _getc
|
---|
20 | move.b R0,(R12)+
|
---|
21 | *line 31
|
---|
22 | move.l R13,(sp)
|
---|
23 | jsr _getc
|
---|
24 | move.b R0,(R12)+
|
---|
25 | *line 32
|
---|
26 | move.l R13,(sp)
|
---|
27 | jsr _getc
|
---|
28 | move.b R0,(R12)+
|
---|
29 | *line 33
|
---|
30 | move.l R13,(sp)
|
---|
31 | jsr _getc
|
---|
32 | move.b R0,(R12)
|
---|
33 | *line 35
|
---|
34 | move.l -4(R14),R0
|
---|
35 | bra L1
|
---|
36 | L1:tst.l (sp)+
|
---|
37 | movem.l (sp)+,R12-R13
|
---|
38 | unlk R14
|
---|
39 | rts
|
---|
40 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.