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:
840 bytes
|
Line | |
---|
1 | .globl _Cbuffs
|
---|
2 | .globl _Stdbufs
|
---|
3 | .globl _Stdbuf
|
---|
4 | .globl _putl
|
---|
5 | .text
|
---|
6 | _putl:
|
---|
7 | ~~putl:
|
---|
8 | ~w=R7
|
---|
9 | ~stream=R13
|
---|
10 | link R14,#0
|
---|
11 | movem.l R6-R7/R13-R13,-(sp)
|
---|
12 | *line 17
|
---|
13 | move.l 8(R14),R7
|
---|
14 | *line 17
|
---|
15 | move.l 12(R14),R13
|
---|
16 | *line 17
|
---|
17 | *line 18
|
---|
18 | move.l R13,(sp)
|
---|
19 | move.l R7,R0
|
---|
20 | move.l #$18,R1
|
---|
21 | asr.l R1,R0
|
---|
22 | move.l R0,-(sp)
|
---|
23 | and.l #$ff,(sp)
|
---|
24 | jsr _putc
|
---|
25 | addq.l #4,sp
|
---|
26 | tst R0
|
---|
27 | blt L1
|
---|
28 | *line 19
|
---|
29 | *line 20
|
---|
30 | *line 21
|
---|
31 | move.l R13,(sp)
|
---|
32 | move.l R7,R0
|
---|
33 | move.l #$10,R1
|
---|
34 | asr.l R1,R0
|
---|
35 | move.l R0,-(sp)
|
---|
36 | and.l #$ff,(sp)
|
---|
37 | jsr _putc
|
---|
38 | addq.l #4,sp
|
---|
39 | tst R0
|
---|
40 | blt L1
|
---|
41 | *line 22
|
---|
42 | *line 23
|
---|
43 | *line 24
|
---|
44 | move.l R13,(sp)
|
---|
45 | move.l R7,R0
|
---|
46 | asr.l #$8,R0
|
---|
47 | move.l R0,-(sp)
|
---|
48 | and.l #$ff,(sp)
|
---|
49 | jsr _putc
|
---|
50 | addq.l #4,sp
|
---|
51 | tst R0
|
---|
52 | blt L1
|
---|
53 | *line 25
|
---|
54 | *line 26
|
---|
55 | move.l R13,(sp)
|
---|
56 | move.l R7,-(sp)
|
---|
57 | and.l #$ff,(sp)
|
---|
58 | jsr _putc
|
---|
59 | addq.l #4,sp
|
---|
60 | L1:tst.l (sp)+
|
---|
61 | movem.l (sp)+,R7-R7/R13-R13
|
---|
62 | unlk R14
|
---|
63 | rts
|
---|
64 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.