From cb58edfdf6b6b5aee90f92b1cbb0fbd674135ed6 Mon Sep 17 00:00:00 2001 From: Ross Wilson Date: Sat, 5 Mar 2016 15:54:28 +0700 Subject: [PATCH] Fixed iasm error, bad checksum and start address block --- iasm/assemble.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iasm/assemble.c b/iasm/assemble.c index 505343a..0b2ed97 100755 --- a/iasm/assemble.c +++ b/iasm/assemble.c @@ -498,8 +498,8 @@ emitblock(void) for (i = 0; i < nextcodeword; ++i) { checksum = checksum + codeblock[i]; - if (checksum & ~WORDMASK) - ++checksum; +// if (checksum & ~WORDMASK) +// ++checksum; checksum &= WORDMASK; emitword(codeblock[i]); } @@ -586,7 +586,7 @@ Description : Emit papertape end-of-code start block. static void emitstart(WORD address) { - emitbyte(1); /* one byte block */ + emitbyte(0377); /* one byte block */ emitword(address); /* start address */ }