source: buchla-68k/alcyon/strrchr.s@ 928d5d9

Last change on this file since 928d5d9 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Added Alcyon C reference output.

  • Property mode set to 100644
File size: 442 bytes
Line 
1.globl _strrchr
2.text
3_strrchr:
4~~strrchr:
5~sp=R13
6~c=R7
7link R14,#0
8movem.l R6-R7/R12-R13,-(sp)
9~r=R12
10*line 19
11move.l 8(R14),R13
12*line 19
13move.b 13(R14),R7
14*line 19
15clr.l R12
16*line 21
17L4:
18*line 22
19*line 23
20*line 24
21cmp.b (R13),R7
22bne L5
23*line 24
24move.l R13,R12
25*line 25
26L5:L3:
27*line 26
28tst.b (R13)+
29bne L4
30L2:
31*line 28
32move.l R12,R0
33bra L1
34L1:tst.l (sp)+
35movem.l (sp)+,R7-R7/R12-R13
36unlk R14
37rts
38.data
Note: See TracBrowser for help on using the repository browser.