comparison lwasm/lwasm.c @ 239:1106ec189e4f

Acknowledge the source of the crc calc for os9
author lost
date Sat, 15 Aug 2009 05:30:25 +0000
parents a9a14e6b4bc8
children 97630727000e
comparison
equal deleted inserted replaced
238:a9a14e6b4bc8 239:1106ec189e4f
99 l -> codelen += 1; 99 l -> codelen += 1;
100 100
101 if (as -> outformat == OUTPUT_OS9 && as -> inmod) 101 if (as -> outformat == OUTPUT_OS9 && as -> inmod)
102 { 102 {
103 // calc the CRC 103 // calc the CRC
104 // this is a direct transliteration from the nitros9 asm source
105 // to C; it can, no doubt, be optimized for 32 bit processing
104 b &= 0xff; 106 b &= 0xff;
105 107
106 b ^= (as -> crc)[0]; 108 b ^= (as -> crc)[0];
107 (as -> crc)[0] = (as -> crc)[1]; 109 (as -> crc)[0] = (as -> crc)[1];
108 (as -> crc)[1] = (as -> crc)[2]; 110 (as -> crc)[1] = (as -> crc)[2];