I am implementing a custom AIS script, and as such, I need to generate my own CRC. I seem unable, however, to generate a CRC that matches those generated by AISGen. I have gone so far as to copy and paste the C example code from the bootloader manual (SPRAAT2B Appendix C) exactly, and even this, when seeded with either 0 or 0xffffffff for its initial value, does not produce the same output as AISGen (that code is attached, and a hexdump of the image generated by AISGen for the same data follows).
00000000 54 49 50 41 0d 59 53 58 02 00 01 00 0b 00 00 00 |TIPA.YSX........|
00000010 03 59 53 58 01 59 53 58 00 00 00 80 04 00 00 00 |.YSX.YSX........|
00000020 61 62 63 0a 02 59 53 58 88 96 06 ff e4 ff ff ff |abc..YSX........|
00000030 06 59 53 58 00 00 00 00 |.YSX....|
00000038
Can you tell me what I'm doing wrong?