|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1983 Regents of the University of California. ! 3: * All rights reserved. The Berkeley software License Agreement ! 4: * specifies the terms and conditions for redistribution. ! 5: */ ! 6: ! 7: #ifdef LIBC_SCCS ! 8: .asciz "@(#)bcmp.s 5.3 (Berkeley) 3/9/86" ! 9: #endif LIBC_SCCS ! 10: ! 11: /* bcmp(s1, s2, n) */ ! 12: ! 13: #include "DEFS.h" ! 14: ! 15: ENTRY(bcmp, 0) ! 16: movl 4(ap),r1 ! 17: movl 8(ap),r3 ! 18: movl 12(ap),r4 ! 19: 1: ! 20: movzwl $65535,r0 ! 21: cmpl r4,r0 ! 22: jleq 2f ! 23: subl2 r0,r4 ! 24: cmpc3 r0,(r1),(r3) ! 25: jeql 1b ! 26: addl2 r4,r0 ! 27: ret ! 28: 2: ! 29: cmpc3 r4,(r1),(r3) ! 30: ret
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.