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:
559 bytes
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _strlcmp
|
---|
| 2 | .text
|
---|
| 3 | _strlcmp:
|
---|
| 4 | ~~strlcmp:
|
---|
| 5 | ~s=8
|
---|
| 6 | ~l=12
|
---|
| 7 | link R14,#-6
|
---|
| 8 | ~rc=-2
|
---|
| 9 | *line 23
|
---|
| 10 | clr -2(R14)
|
---|
| 11 | *line 25
|
---|
| 12 | bra L4
|
---|
| 13 | L3:
|
---|
| 14 | *line 26
|
---|
| 15 | *line 27
|
---|
| 16 | *line 28
|
---|
| 17 | move.l 12(R14),R8
|
---|
| 18 | move -2(R14),R9
|
---|
| 19 | add.l R9,R9
|
---|
| 20 | add.l R9,R9
|
---|
| 21 | move.l 0(R8,R9.l),(sp)
|
---|
| 22 | move.l 8(R14),-(sp)
|
---|
| 23 | jsr _strcmp
|
---|
| 24 | addq.l #4,sp
|
---|
| 25 | tst R0
|
---|
| 26 | bne L5
|
---|
| 27 | *line 28
|
---|
| 28 | add #1,-2(R14)
|
---|
| 29 | move -2(R14),R0
|
---|
| 30 | bra L1
|
---|
| 31 | *line 29
|
---|
| 32 | L5:
|
---|
| 33 | *line 30
|
---|
| 34 | add #1,-2(R14)
|
---|
| 35 | L4:
|
---|
| 36 | *line 31
|
---|
| 37 | move.l 12(R14),R8
|
---|
| 38 | move -2(R14),R9
|
---|
| 39 | add.l R9,R9
|
---|
| 40 | add.l R9,R9
|
---|
| 41 | tst.l 0(R8,R9.l)
|
---|
| 42 | bne L3
|
---|
| 43 | L2:
|
---|
| 44 | *line 33
|
---|
| 45 | clr R0
|
---|
| 46 | bra L1
|
---|
| 47 | L1:unlk R14
|
---|
| 48 | rts
|
---|
| 49 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.