Last change
on this file since fa38804 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
424 bytes
|
Line | |
---|
1 | .globl _Cbuffs
|
---|
2 | .globl _Stdbufs
|
---|
3 | .globl _Stdbuf
|
---|
4 | .globl _getw
|
---|
5 | .text
|
---|
6 | _getw:
|
---|
7 | ~~getw:
|
---|
8 | ~stream=R13
|
---|
9 | link R14,#-2
|
---|
10 | movem.l R7-R7/R12-R13,-(sp)
|
---|
11 | ~temp=-2
|
---|
12 | ~t=R12
|
---|
13 | *line 28
|
---|
14 | move.l 8(R14),R13
|
---|
15 | *line 28
|
---|
16 | lea -2(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 33
|
---|
26 | move -2(R14),R0
|
---|
27 | bra L1
|
---|
28 | L1:tst.l (sp)+
|
---|
29 | movem.l (sp)+,R12-R13
|
---|
30 | unlk R14
|
---|
31 | rts
|
---|
32 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.