Last change
on this file since f7c91fc was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
608 bytes
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _strltrm
|
---|
| 2 | .text
|
---|
| 3 | _strltrm:
|
---|
| 4 | ~~strltrm:
|
---|
| 5 | ~s=R13
|
---|
| 6 | link R14,#0
|
---|
| 7 | movem.l R6-R7/R11-R13,-(sp)
|
---|
| 8 | ~c=R7
|
---|
| 9 | ~lp=R12
|
---|
| 10 | ~rp=R11
|
---|
| 11 | *line 19
|
---|
| 12 | move.l 8(R14),R13
|
---|
| 13 | *line 19
|
---|
| 14 | *line 20
|
---|
| 15 | cmp.b #32,(R13)
|
---|
| 16 | beq L2
|
---|
| 17 | *line 20
|
---|
| 18 | move.l R13,R0
|
---|
| 19 | bra L1
|
---|
| 20 | *line 21
|
---|
| 21 | L2:
|
---|
| 22 | *line 22
|
---|
| 23 | move.l R13,R12
|
---|
| 24 | *line 23
|
---|
| 25 | move.l R13,R11
|
---|
| 26 | *line 25
|
---|
| 27 | bra L5
|
---|
| 28 | L4:
|
---|
| 29 | *line 26
|
---|
| 30 | add.l #1,R11
|
---|
| 31 | L5:
|
---|
| 32 | *line 26
|
---|
| 33 | cmp.b #32,(R11)
|
---|
| 34 | beq L4
|
---|
| 35 | L3:
|
---|
| 36 | *line 28
|
---|
| 37 | bra L8
|
---|
| 38 | L7:
|
---|
| 39 | *line 29
|
---|
| 40 | move.b R7,(R12)+
|
---|
| 41 | L8:
|
---|
| 42 | *line 29
|
---|
| 43 | move.b (R11)+,R7
|
---|
| 44 | bne L7
|
---|
| 45 | L6:
|
---|
| 46 | *line 31
|
---|
| 47 | clr.b (R12)
|
---|
| 48 | *line 33
|
---|
| 49 | move.l R13,R0
|
---|
| 50 | bra L1
|
---|
| 51 | L1:tst.l (sp)+
|
---|
| 52 | movem.l (sp)+,R7-R7/R11-R13
|
---|
| 53 | unlk R14
|
---|
| 54 | rts
|
---|
| 55 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.