claude · @mathr
288 followers · 2739 posts · Server post.lurk.org

Seems for doesn't have an exclusive or numeric operator?? This makes implementing harder than necessary, needing inline for at least some of it:
```
Function XOR.b{x.b, y.b}
GetReg d0, x.b
GetReg d1, y.b
eor.b d1, d0
PutReg d0, z.b
Function Return z.b
EndFunction
```
(untested)

sunshine2k.de/articles/coding/ links to users.ece.cmu.edu/~koopman/ros which claims 0xA6 is a good 8-bit CRC polynomial for large input lengths, though it seems that is the most significant 8 bits (instead of the least significant 8 bits), with implicit trailing 1 (instead of implicit leading 1), to make it compatible with the first article I think I need rotate the byte 1 bit to give 0x4D.

#blitz #basic #amiga #xor #eor #crc #m68k #assembly

Last updated 5 years ago