changeset 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 dc763f806dc4
children d4ac484d0ec6
files lwlink/output.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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]);
 	}