Last change
on this file since 4810254 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
464 bytes
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _Cbuffs
|
---|
| 2 | .globl _Stdbufs
|
---|
| 3 | .globl _Stdbuf
|
---|
| 4 | .globl _putw
|
---|
| 5 | .text
|
---|
| 6 | _putw:
|
---|
| 7 | ~~putw:
|
---|
| 8 | ~w=R7
|
---|
| 9 | ~stream=10
|
---|
| 10 | link R14,#0
|
---|
| 11 | movem.l R6-R7,-(sp)
|
---|
| 12 | *line 17
|
---|
| 13 | move 8(R14),R7
|
---|
| 14 | *line 17
|
---|
| 15 | *line 18
|
---|
| 16 | move.l 10(R14),(sp)
|
---|
| 17 | clr R0
|
---|
| 18 | move R7,R0
|
---|
| 19 | lsr #8,R0
|
---|
| 20 | move R0,-(sp)
|
---|
| 21 | and #255,(sp)
|
---|
| 22 | jsr _putc
|
---|
| 23 | addq.l #2,sp
|
---|
| 24 | tst R0
|
---|
| 25 | blt L1
|
---|
| 26 | *line 19
|
---|
| 27 | *line 20
|
---|
| 28 | move.l 10(R14),(sp)
|
---|
| 29 | move R7,-(sp)
|
---|
| 30 | and #255,(sp)
|
---|
| 31 | jsr _putc
|
---|
| 32 | addq.l #2,sp
|
---|
| 33 | L1:tst.l (sp)+
|
---|
| 34 | movem.l (sp)+,R7-R7
|
---|
| 35 | unlk R14
|
---|
| 36 | rts
|
---|
| 37 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.