|
|
1.1 ! root 1: .data ! 2: .text ! 3: LL0:.align 1 ! 4: .globl _l_gt ! 5: .set MASK__,0x4 ! 6: .data ! 7: .text ! 8: _l_gt:.word MASK__ ! 9: movl 4(fp),r0 /* a */ ! 10: movl 8(fp),r1 /* b */ ! 11: cmpl 12(fp),16(fp) /* if (la <= lb) */ ! 12: jgtr LB ! 13: movl 12(fp), r2 /* compare according to la */ ! 14: cmps3 ! 15: jleq out0 /* if less or equal return(0) */ ! 16: jbr out1 /* else greater: return(1) */ ! 17: ! 18: LB: /* else */ ! 19: movl 16(fp), r2 /* compare according to lb */ ! 20: cmps3 ! 21: jlss out0 /* if less return(0) */ ! 22: jgtr out1 /* if greater return(1) */ ! 23: ! 24: addl3 4(fp), 12(fp), r2 /* aend */ ! 25: LOOP2: ! 26: cmpb (r0), $32 /* if *a != space */ ! 27: jneq out1 /* then astring > bstring */ ! 28: incl r0 /* else continue */ ! 29: cmpl r0, r2 /* till aend */ ! 30: jlssu LOOP2 ! 31: out0: ! 32: clrl r0 ! 33: ret ! 34: out1: ! 35: movl $1, r0 /* else return(1) */ ! 36: ret
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.