From 0b81224b6ab8cd6da45039525962c6490ed2df56 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sat, 14 Dec 2019 23:58:01 -0500 Subject: We now have keyboard support!!! I also added the WAI instruction, which puts the thread that executed it, into a catatonic stat, where it can't do anything, until an interrupt occurs. I will be starting work on GFsuX next. I also might start work on SuBAsm, the Sux Bootstrapping Assembler. --- opcode.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'opcode.h') diff --git a/opcode.h b/opcode.h index 92d504c..a759ff8 100644 --- a/opcode.h +++ b/opcode.h @@ -77,7 +77,7 @@ #define CPX 0xB4 /* ComPare X register. */ #define CAX 0xB5 /* Compare Accumulator, and X register. */ #define ENT 0xB8 /* ENd Threads. */ -#define RTI 0xC0 /* ReTurn from Interupt. */ +#define RTI 0xC0 /* ReTurn from Interrupt. */ #define INC 0xC1 /* INCrement accumulator. */ #define INY 0xC2 /* INcrement Y register. */ #define IAY 0xC3 /* Increment Accumulator, and Y register. */ @@ -88,6 +88,7 @@ #define DAY 0xD3 /* Decrement Accumulator, and Y register. */ #define DEX 0xD4 /* DEcrement X register. */ #define DAX 0xD5 /* Decrement Accumulator, and X register. */ +#define WAI 0xD8 /* WAit for Interrupt. */ #define JSL 0xE0 /* Jump to Subroutine Long. */ #define NOP 0xE8 /* No OPeration. */ #define RTL 0xF0 /* ReTurn from subroutine Long. */ @@ -265,6 +266,7 @@ static const char *opname[0x100] = { OPNAME(DAY), OPNAME(DEX), OPNAME(DAX), + OPNAME(WAI), OPNAME(JSL), [0xE1] = "INC a", [0xE2] = "CPY a", -- cgit v1.2.3-13-gbd6f