source: buchla-68k/alcyon/printf.s@ 9519422

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: 697 bytes
Line 
1.globl _printf
2.text
3_printf:
4~~printf:
5~fmt=8
6~va_alist=12
7link R14,#-4
8movem.l R6-R7,-(sp)
9~count=R7
10~aptr=-4
11*line 36
12lea 12(R14),R8
13move.l R8,-4(R14)
14*line 37
15move.l -4(R14),(sp)
16move.l 8(R14),-(sp)
17move.l #_fpsub,-(sp)
18jsr _dofmt_
19addq.l #8,sp
20move.l R0,R7
21*line 39
22move.l R7,R0
23bra L1
24L1:tst.l (sp)+
25movem.l (sp)+,R7-R7
26unlk R14
27rts
28.text
29_fpsub:
30~~fpsub:
31~c=8
32link R14,#-4
33*line 55
34*line 56
35cmp #10,8(R14)
36bne L4
37*line 56
38move #13,(sp)
39move #2,-(sp)
40move #3,-(sp)
41jsr _trap13
42addq.l #4,sp
43*line 57
44L4:
45*line 58
46move 8(R14),(sp)
47move #2,-(sp)
48move #3,-(sp)
49jsr _trap13
50addq.l #4,sp
51*line 59
52move 8(R14),R0
53bra L3
54L3:unlk R14
55rts
56.data
Note: See TracBrowser for help on using the repository browser.