home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
rzsz_3_36_3_src.lzh
/
UPDC32_asm.c
< prev
next >
Wrap
Text File
|
1996-01-08
|
689b
|
29 lines
#asm
ldd 8,s '(int)c' to d & sp-2
eorb 5,s '^ b'
clra & 0xff,in view of this?
aslb crctab is 4 byte values
rola dbl once
aslb
rola dbl again to 4
leax cr3tab,y
leax d,x
ldd 2,x get lsint of crctab
pshs d sp-4
ldd ,x get msint of crctab
pshs d sp-6
leax 10,s point at passed crc now
ldd 1,x the first 8 bit shift
std 2,x via load and store at +1
pshs d Gene Heskett rids an ldd 2,x below
ldb ,x Gene Heskett now shift msint
clra Gene Heskett was ,x with zero fill
std ,x Gene Heskett makes 2 copies on stack
pshs d sp-10
bsr _3 sp-12
fdb 255,-1 =#$00FF,#$FFFF
_3 puls x sp-10 and x->#$00FFFFFF
lbsr _land incs sp by 4? sp-6
lbsr _lxor incs sp by 4? sp-2
#endasm