added extra istructions

This commit is contained in:
zanostro 2025-11-16 02:10:14 +01:00
parent ad3078ba48
commit ba18b92116
8 changed files with 470 additions and 123 deletions

View file

@ -66,6 +66,28 @@
#define TIXR 0xB8
#define WD 0xDC
// ==============================
// Extended opcodes (SIC/XE/XE)
// ==============================
#define NOP 0xF1
#define HALT 0xF2
#define XEXE 0xEE // Enable extended mode
#define VADD 0x18
#define VADDR 0x90
#define VSUB 0x1C
#define VSUBR 0x94
#define VMUL 0x20
#define VMULR 0x98
#define VDIV 0x24
#define VDIVR 0x9C
#define STVA 0x0C
#define STVS 0x7C
#define STVT 0x84
#define LDVA 0x00
#define LDVS 0x68
#define LDVT 0x04
enum class InstructionType {
TYPE1,
@ -86,6 +108,7 @@ struct InstructionInfo {
};
extern InstructionInfo instructions[];
extern InstructionInfo instructionsEXEX[];
// Initialize the instruction table
void loadInstructionSet();