From 9730a28fa224048914a61c869d06a34ef1dc497e Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 28 Feb 2025 21:24:00 -0500 Subject: listamsb: don't print the colon before an ELSE. --- listamsb.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/listamsb.c b/listamsb.c index 6092dfa..77d9a88 100644 --- a/listamsb.c +++ b/listamsb.c @@ -23,6 +23,9 @@ #define TOK_SQUOTE 0x9a #define TOK_BANG 0x9b +/* AMSB's token for ELSE */ +#define TOK_ELSE 0x9c + /* good old Atari EOL character */ #define EOL 0x9b @@ -339,8 +342,10 @@ int next_line(void) { continue; } - if(was_colon && byte != TOK_SQUOTE && byte != TOK_BANG) { - if(printing) putc(':', outfile); + if(was_colon) { + if(byte != TOK_SQUOTE && byte != TOK_BANG && byte != TOK_ELSE) { + if(printing) putc(':', outfile); + } was_colon = 0; } -- cgit v1.2.3