Last change
on this file since 9519422 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
630 bytes
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _Cbuffs
|
---|
| 2 | .globl _Stdbufs
|
---|
| 3 | .globl _Stdbuf
|
---|
| 4 | .bss
|
---|
| 5 | L1:.ds.b 4
|
---|
| 6 | .text
|
---|
| 7 | .globl _fprintf
|
---|
| 8 | .text
|
---|
| 9 | _fprintf:
|
---|
| 10 | ~~fprintf:
|
---|
| 11 | ~stream=8
|
---|
| 12 | ~fmt=12
|
---|
| 13 | ~va_alist=16
|
---|
| 14 | link R14,#-4
|
---|
| 15 | movem.l R6-R7,-(sp)
|
---|
| 16 | ~count=R7
|
---|
| 17 | ~aptr=-4
|
---|
| 18 | *line 27
|
---|
| 19 | move.l 8(R14),L1
|
---|
| 20 | *line 28
|
---|
| 21 | lea 16(R14),R8
|
---|
| 22 | move.l R8,-4(R14)
|
---|
| 23 | *line 29
|
---|
| 24 | move.l -4(R14),(sp)
|
---|
| 25 | move.l 12(R14),-(sp)
|
---|
| 26 | move.l #_fpsub,-(sp)
|
---|
| 27 | jsr __dofmt
|
---|
| 28 | addq.l #8,sp
|
---|
| 29 | move R0,R7
|
---|
| 30 | *line 31
|
---|
| 31 | move R7,R0
|
---|
| 32 | bra L2
|
---|
| 33 | L2:tst.l (sp)+
|
---|
| 34 | movem.l (sp)+,R7-R7
|
---|
| 35 | unlk R14
|
---|
| 36 | rts
|
---|
| 37 | .text
|
---|
| 38 | _fpsub:
|
---|
| 39 | ~~fpsub:
|
---|
| 40 | ~c=8
|
---|
| 41 | link R14,#-4
|
---|
| 42 | *line 38
|
---|
| 43 | move.l L1,(sp)
|
---|
| 44 | move 8(R14),-(sp)
|
---|
| 45 | jsr _aputc
|
---|
| 46 | addq.l #2,sp
|
---|
| 47 | bra L4
|
---|
| 48 | L4:unlk R14
|
---|
| 49 | rts
|
---|
| 50 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.