diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2019-12-14 23:58:01 -0500 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2019-12-14 23:58:01 -0500 |
commit | 0b81224b6ab8cd6da45039525962c6490ed2df56 (patch) | |
tree | a76bfa10ee6ae726efb212442a68c17b253b49ba /opcode.h | |
parent | c6d71bcf0e545a490fdeb0dfcafea2d5a02157c6 (diff) |
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.
Diffstat (limited to 'opcode.h')
-rw-r--r-- | opcode.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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", |