uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 18a48a28c578004c62b58d2d485a95fb64bd2208
parent e791dbd640dc106c369b2ef575359371bc331f77
Author: neauoire <aliceffekt@gmail.com>
Date:   Sun,  4 Apr 2021 09:17:30 -0700

Starting to remove the lit counter

Diffstat:
Msrc/debugger.c | 14+++++++-------
Msrc/uxn.h | 2++
2 files changed, 9 insertions(+), 7 deletions(-)

diff --git 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 @@ -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