added instruction functionality

This commit is contained in:
zanostro 2025-11-11 21:51:15 +01:00
parent 483a16c194
commit d4754a048d
9 changed files with 754 additions and 170 deletions

View file

@ -1,6 +1,8 @@
#ifndef OPCODE_H
#define OPCODE_H
#include "utils.h"
// ==============================
// Opcode definitions (SIC/XE)
// ==============================
@ -65,15 +67,6 @@
#define WD 0xDC
// SW register condition codes
constexpr int CC_LT = 0x0; // 00
constexpr int CC_EQ = 0x1; // 01
constexpr int CC_GT = 0x2; // 10
constexpr int CC_MASK = 0x3; // mask for 2 bits
enum class InstructionType {
TYPE1,
TYPE2,