Increase number of opcodes

This commit is contained in:
Alexander Batalov 2022-11-07 19:06:37 +03:00
parent fa058f24b4
commit 9c6286f94a
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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,