From 18a48a28c578004c62b58d2d485a95fb64bd2208 Mon Sep 17 00:00:00 2001 From: neauoire Date: Sun, 4 Apr 2021 09:17:30 -0700 Subject: [PATCH] Starting to remove the lit counter --- src/debugger.c | 14 +++++++------- src/uxn.h | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/debugger.c b/src/debugger.c index 0bf3e1b..5861df1 100644 --- a/src/debugger.c +++ b/src/debugger.c @@ -115,13 +115,13 @@ main(int argc, char **argv) if(!loaduxn(&u, argv[1])) return error("Load", "Failed"); - portuxn(&u, "console", console_poke); - portuxn(&u, "empty", ppnil); - portuxn(&u, "empty", ppnil); - portuxn(&u, "empty", ppnil); - portuxn(&u, "empty", ppnil); - portuxn(&u, "empty", ppnil); - portuxn(&u, "file", file_poke); + portuxn(&u, 0x00, "console", console_poke); + portuxn(&u, 0x01, "empty", ppnil); + portuxn(&u, 0x02, "empty", ppnil); + portuxn(&u, 0x03, "empty", ppnil); + portuxn(&u, 0x04, "empty", ppnil); + portuxn(&u, 0x05, "empty", ppnil); + portuxn(&u, 0x06, "file", file_poke); start(&u); return 0; diff --git a/src/uxn.h b/src/uxn.h index 3286929..73494c6 100644 --- a/src/uxn.h +++ b/src/uxn.h @@ -17,6 +17,8 @@ typedef unsigned short Uint16; typedef signed short Sint16; #define FLAG_HALT 0x01 +#define FLAG_LIT1 0x04 +#define FLAG_LIT2 0x08 #define PAGE_DEVICE 0x0100 #define PAGE_VECTORS 0x0200