summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2023-09-11 19:29:03 -0400
committerXANTRONIX Development2023-09-11 19:29:03 -0400
commitcbd7bf625b8df13ea93cb48c485099f6d058f515 (patch)
tree491192d2e15bb3db0998e044c7687775a9b5faa5
parent8b4a8a933a36d841c0bd789d8624ee8f1d0aeac5 (diff)
downloadzxdump-cbd7bf625b8df13ea93cb48c485099f6d058f515.tar.gz
zxdump-cbd7bf625b8df13ea93cb48c485099f6d058f515.tar.bz2
zxdump-cbd7bf625b8df13ea93cb48c485099f6d058f515.zip
Awfully good result there!
-rw-r--r--main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.c b/main.c
index d5cc4db..474aa42 100644
--- a/main.c
+++ b/main.c
@@ -42,6 +42,12 @@
#define ZX_BASIC_STATE_LEN 116
+#define ZX_CHAR_TOKEN_INTEGRAL(c) \
+ (c == 0x0e)
+
+#define ZX_CHAR_TOKEN_FLOAT(c) \
+ (c == 0x7e)
+
typedef struct _zx_basic_line {
uint16_t num, len;
} zx_basic_line;
@@ -290,6 +296,10 @@ static ssize_t zx_dump_basic(int fd) {
}
}
+ if (ZX_CHAR_TOKEN_INTEGRAL(c) || ZX_CHAR_TOKEN_FLOAT(c)) {
+ i += 5;
+ }
+
if (zx_print(c, tty) < 0) {
goto error_io;
}