From 9c6286f94aff18a2b669b202ed1b812001491004 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Mon, 7 Nov 2022 19:06:37 +0300 Subject: [PATCH] Increase number of opcodes --- src/interpreter.cc | 2 +- src/interpreter.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/interpreter.cc b/src/interpreter.cc index c196823..d1b1ad4 100644 --- a/src/interpreter.cc +++ b/src/interpreter.cc @@ -155,7 +155,7 @@ static int (*_outputFunc)(char*) = _outputStr; static int _cpuBurstSize = 10; // 0x59E230 -static OpcodeHandler* gInterpreterOpcodeHandlers[342]; +static OpcodeHandler* gInterpreterOpcodeHandlers[OPCODE_MAX_COUNT]; // 0x59E78C static Program* gInterpreterCurrentProgram; diff --git a/src/interpreter.h b/src/interpreter.h index 764d14e..91d27bb 100644 --- a/src/interpreter.h +++ b/src/interpreter.h @@ -8,7 +8,9 @@ namespace fallout { // The maximum number of opcodes. -#define OPCODE_MAX_COUNT (342) +// +// SFALL: Increase number of opcodes. +#define OPCODE_MAX_COUNT 768 typedef enum Opcode { OPCODE_NOOP = 0x8000,