source: buchla-68k/alcyon/strchr.s@ 4810254

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