source: buchla-68k/alcyon/memcmpu.s@ 81a59aa

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

Added Alcyon C reference output.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1.globl ___atab
2.globl _memcmpu
3.text
4_memcmpu:
5~~memcmpu:
6~s1=R13
7~s2=R12
8~n=16
9link R14,#0
10movem.l R5-R7/R12-R13,-(sp)
11~c1=R7
12~c2=R6
13*line 17
14move.l 8(R14),R13
15*line 17
16move.l 12(R14),R12
17*line 17
18bra L4
19L3:
20*line 18
21*line 19
22move.b (R13)+,R7
23*line 20
24move.b (R12)+,R6
25*line 21
26*line 22
27*line 23
28move.b R7,R0
29ext.w R0
30and #-128,R0
31bne L5
32move.b R7,R0
33ext.w R0
34ext.l R0
35add.l #___atab,R0
36move.l R0,R8
37btst #4,(R8)
38beq L5
39*line 23
40add.b #-32,R7
41*line 24
42L5:
43*line 25
44*line 26
45move.b R6,R0
46ext.w R0
47and #-128,R0
48bne L6
49move.b R6,R0
50ext.w R0
51ext.l R0
52add.l #___atab,R0
53move.l R0,R8
54btst #4,(R8)
55beq L6
56*line 26
57add.b #-32,R6
58*line 27
59L6:
60*line 28
61*line 29
62cmp.b R6,R7
63bge L7
64*line 29
65move #-1,R0
66bra L1
67*line 30
68L7:
69*line 31
70*line 32
71cmp.b R6,R7
72ble L8
73*line 32
74move #1,R0
75bra L1
76*line 33
77L8:
78*line 34
79sub #1,16(R14)
80L4:
81*line 35
82tst 16(R14)
83bne L3
84L2:
85*line 37
86clr R0
87bra L1
88L1:tst.l (sp)+
89movem.l (sp)+,R6-R7/R12-R13
90unlk R14
91rts
92.data
Note: See TracBrowser for help on using the repository browser.