# HG changeset patch # User William Astle # Date 1391912711 25200 # Node ID a640ff4ed95f9d02bec83ad792e6f288018a537d # Parent dc763f806dc41ab8e75c46e66499631ac6b4db44 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. diff -r dc763f806dc4 -r a640ff4ed95f lwlink/output.c --- a/lwlink/output.c Tue Feb 04 20:16:35 2014 -0700 +++ b/lwlink/output.c Sat Feb 08 19:25:11 2014 -0700 @@ -338,7 +338,7 @@ if (linkscript.edition >= 0) { - buf[0] = linkscript.edition & 0x80; + buf[0] = linkscript.edition & 0xff; writebytes(buf, 1, 1, of); os9crc(crc, buf[0]); }