From 82451a93d694b836dd849beea7ebc0a6da896c87 Mon Sep 17 00:00:00 2001 From: Ross Wilson Date: Sat, 5 Mar 2016 12:51:26 +0700 Subject: [PATCH] Make iasm generate same format PTP files as pyasm --- iasm/assemble.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iasm/assemble.c b/iasm/assemble.c index 7398f56..505343a 100755 --- a/iasm/assemble.c +++ b/iasm/assemble.c @@ -176,7 +176,7 @@ OPCODE opcodes[] = * The PTR block loader, origin at 03700. ******/ -#define ZEROLEADERSIZE 2 +#define ZEROLEADERSIZE 16 WORD blkldr[] = { @@ -1330,6 +1330,9 @@ Pass2(void) emitblock(); emitstart(WORDMASK); + for (int i = 0; i < ZEROLEADERSIZE; ++i) + emitbyte(0); + return TRUE; }