aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-17 02:44:51 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-17 02:44:51 -0400
commitb0c66bcc6fc5f99dd885808b99c5388fa1804fdc (patch)
treee3a7fb9e4072073cda536c290ad6d6b2cda2ae43
parent7dfa933827366b8ca2f8d672a14e0122afd31659 (diff)
downloadbw-atari8-tools-b0c66bcc6fc5f99dd885808b99c5388fa1804fdc.tar.gz
listbas: print empty op token names correctly, handle silent let in A+.
-rw-r--r--listbas.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/listbas.c b/listbas.c
index 448ee8d..fe2cbd4 100644
--- a/listbas.c
+++ b/listbas.c
@@ -415,6 +415,7 @@ void print_ata_chr(unsigned char c) {
void print_mixed_case(const char *name) {
char c;
+ if(!*name) return;
if(*name == ' ')
outchr(*name++);
outchr(*name++);
@@ -469,7 +470,11 @@ CALLBACK(print_lineno) {
CALLBACK(print_cmd) {
const char *name;
- if(tok == CMD_ILET) return;
+ if(bas_type == B_APLUS) {
+ if(tok == 0x52) return;
+ } else {
+ if(tok == CMD_ILET) return;
+ }
if(color) color_on(color_cmd);