Annotation of lucent/sys/src/ape/lib/ap/68020/strcmp.s, revision 1.1

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.