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:
392 bytes
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _strchr
|
---|
| 2 | .text
|
---|
| 3 | _strchr:
|
---|
| 4 | ~~strchr:
|
---|
| 5 | ~sp=R13
|
---|
| 6 | ~c=R7
|
---|
| 7 | link R14,#0
|
---|
| 8 | movem.l R6-R7/R13-R13,-(sp)
|
---|
| 9 | *line 16
|
---|
| 10 | move.l 8(R14),R13
|
---|
| 11 | *line 16
|
---|
| 12 | move.b 13(R14),R7
|
---|
| 13 | *line 16
|
---|
| 14 | L4:
|
---|
| 15 | *line 17
|
---|
| 16 | *line 18
|
---|
| 17 | cmp.b (R13),R7
|
---|
| 18 | bne L5
|
---|
| 19 | *line 18
|
---|
| 20 | move.l R13,R0
|
---|
| 21 | bra L1
|
---|
| 22 | L5:L3:
|
---|
| 23 | *line 19
|
---|
| 24 | tst.b (R13)+
|
---|
| 25 | bne L4
|
---|
| 26 | L2:
|
---|
| 27 | *line 21
|
---|
| 28 | clr.l R0
|
---|
| 29 | bra L1
|
---|
| 30 | L1:tst.l (sp)+
|
---|
| 31 | movem.l (sp)+,R7-R7/R13-R13
|
---|
| 32 | unlk R14
|
---|
| 33 | rts
|
---|
| 34 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.