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 >
Text File  |  1996-01-08  |  689b  |  29 lines

  1. #asm
  2.  ldd 8,s '(int)c' to d & sp-2
  3.  eorb 5,s '^ b'
  4.  clra & 0xff,in view of this?
  5.  aslb crctab is 4 byte values
  6.  rola dbl once
  7.  aslb
  8.  rola dbl again to 4
  9.  leax cr3tab,y
  10.  leax d,x
  11.  ldd 2,x get lsint of crctab
  12.  pshs d sp-4 
  13.  ldd ,x get msint of crctab
  14.  pshs d sp-6
  15.  leax 10,s point at passed crc now
  16.  ldd 1,x the first 8 bit shift
  17.  std 2,x via load and store at +1
  18.  pshs d Gene Heskett rids an ldd 2,x below
  19.  ldb ,x Gene Heskett now shift msint
  20.  clra Gene Heskett was ,x with zero fill
  21.  std ,x Gene Heskett makes 2 copies on stack
  22.  pshs d sp-10
  23.  bsr _3 sp-12
  24.  fdb 255,-1 =#$00FF,#$FFFF
  25. _3 puls x sp-10 and x->#$00FFFFFF
  26.  lbsr  _land incs sp by 4? sp-6
  27.  lbsr  _lxor incs sp by 4? sp-2
  28. #endasm
  29.