comparison lwlink/output.c @ 320:a640ff4ed95f

Fix dumbosity in outputting the edition byte in os9 target With the OS9 target, for some unknown reason, lwlink was anding the version byte with 0x80 which really doesn't make any sense. That means there are only two editions possible: 0 and 128. Definite dumbosity.
author William Astle <lost@l-w.ca>
date Sat, 08 Feb 2014 19:25:11 -0700
parents 346966cffeef
children 55c1f9a321e9
comparison
equal deleted inserted replaced
319:dc763f806dc4 320:a640ff4ed95f
336 writebytes(buf, 1, 1, of); 336 writebytes(buf, 1, 1, of);
337 os9crc(crc, buf[0]); 337 os9crc(crc, buf[0]);
338 338
339 if (linkscript.edition >= 0) 339 if (linkscript.edition >= 0)
340 { 340 {
341 buf[0] = linkscript.edition & 0x80; 341 buf[0] = linkscript.edition & 0xff;
342 writebytes(buf, 1, 1, of); 342 writebytes(buf, 1, 1, of);
343 os9crc(crc, buf[0]); 343 os9crc(crc, buf[0]);
344 } 344 }
345 345
346 crc[0] ^= 0xff; 346 crc[0] ^= 0xff;