blob: c6072efd70410d2e5e30b4d72b4cd0553bde98f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
TEXT strcmp(SB), $0
MOVL s1+0(FP), A2
MOVL s2+4(FP), A1
l1: MOVB (A1)+, R0
BEQ end
CMPB R0, (A2)+
BEQ l1
BCS gtr
MOVL $-1, R0
RTS
gtr: MOVL $1, R0
RTS
end: TSTB (A2)
BNE gtr
CLRL R0
RTS
|