|
|
1.1 ! root 1: /* ! 2: * unpack comet microcode and patch bits: ! 3: * it's too much trouble to write this in C ! 4: * ! 5: * unpack(packed, unpacked, nwords, nbits) ! 6: * ! 7: * copies nwords nbits-bit things from packed ! 8: * into nwords 32-bit things in unpacked ! 9: */ ! 10: ! 11: .globl _unpack ! 12: _unpack: ! 13: .word 0 ! 14: movl 8(ap),r0 # to ! 15: clrl r1 # bit offset ! 16: movl 12(ap),r2 # word count ! 17: bneq 0f ! 18: ret ! 19: 0: movl 16(ap),r3 # bit size ! 20: bneq 1f ! 21: ret ! 22: 1: ! 23: extzv r1,r3,*4(ap),(r0)+ ! 24: addl2 r3,r1 ! 25: sobgtr r2,1b ! 26: ret
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.