Last change
on this file since 526a993 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
501 bytes
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _strfill
|
---|
| 2 | .text
|
---|
| 3 | _strfill:
|
---|
| 4 | ~~strfill:
|
---|
| 5 | ~s=R13
|
---|
| 6 | ~c=R7
|
---|
| 7 | ~n=R6
|
---|
| 8 | link R14,#-4
|
---|
| 9 | movem.l R4-R7/R13-R13,-(sp)
|
---|
| 10 | ~i=R5
|
---|
| 11 | ~p=-4
|
---|
| 12 | *line 24
|
---|
| 13 | move.l 8(R14),R13
|
---|
| 14 | *line 24
|
---|
| 15 | move.b 13(R14),R7
|
---|
| 16 | *line 24
|
---|
| 17 | move 14(R14),R6
|
---|
| 18 | *line 24
|
---|
| 19 | move.l R13,-4(R14)
|
---|
| 20 | *line 26
|
---|
| 21 | move R6,R5
|
---|
| 22 | bra L4
|
---|
| 23 | L5:
|
---|
| 24 | *line 27
|
---|
| 25 | move.b R7,(R13)+
|
---|
| 26 | L3:L4:
|
---|
| 27 | *line 26
|
---|
| 28 | clr R0
|
---|
| 29 | move R5,R0
|
---|
| 30 | sub #1,R5
|
---|
| 31 | tst R0
|
---|
| 32 | bne L5
|
---|
| 33 | L2:
|
---|
| 34 | *line 29
|
---|
| 35 | clr.b (R13)
|
---|
| 36 | *line 30
|
---|
| 37 | move.l -4(R14),R0
|
---|
| 38 | bra L1
|
---|
| 39 | L1:tst.l (sp)+
|
---|
| 40 | movem.l (sp)+,R5-R7/R13-R13
|
---|
| 41 | unlk R14
|
---|
| 42 | rts
|
---|
| 43 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.