FreeCalypso > hg > fc-magnetite
comparison src/cs/system/Main/mem_load.c @ 281:852b8410431d
mem_load.c: removal of checksum changes produces perfect reconstruction
of TCS211 mem_load.obj except for register allocator diffs
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 07 Aug 2017 05:34:38 +0000 |
parents | 081a2b303178 |
children |
comparison
equal
deleted
inserted
replaced
280:081a2b303178 | 281:852b8410431d |
---|---|
67 extern void decompress(unsigned long input_start, | 67 extern void decompress(unsigned long input_start, |
68 unsigned long input_length, | 68 unsigned long input_length, |
69 unsigned long output_start); | 69 unsigned long output_start); |
70 #else | 70 #else |
71 | 71 |
72 #ifdef USE_CHECKSUM | |
73 UWORD16 f_checksum(UWORD8 *p_begin, | 72 UWORD16 f_checksum(UWORD8 *p_begin, |
74 UWORD32 d_length) { | 73 UWORD32 d_length) { |
75 UWORD16 d_checksum = 0x0000; | 74 UWORD16 d_checksum = 0x0000; |
76 | 75 |
77 while(d_length > 0) { | 76 while(d_length > 0) { |
79 d_length --; | 78 d_length --; |
80 } | 79 } |
81 | 80 |
82 return(d_checksum); | 81 return(d_checksum); |
83 } | 82 } |
84 #else | |
85 UWORD16 f_checksum(UWORD8 *p_begin, | |
86 UWORD32 d_length) { | |
87 return 0; | |
88 } | |
89 #endif | |
90 | 83 |
91 #endif | 84 #endif |
92 | 85 |
93 #if (CHIPSET == 12) || (CHIPSET == 15) | 86 #if (CHIPSET == 12) || (CHIPSET == 15) |
94 /* | 87 /* |