From d779a38060bd340b9cb0d8010a35200c13e497d8 Mon Sep 17 00:00:00 2001 From: Ronit Dsilva <124994670+Cherrytree56567@users.noreply.github.com> Date: Fri, 6 Oct 2023 22:09:09 +1100 Subject: [PATCH] update PSEMU/CPU.cpp --- PSEMU/CPU.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PSEMU/CPU.cpp b/PSEMU/CPU.cpp index f171b4b..001a254 100644 --- a/PSEMU/CPU.cpp +++ b/PSEMU/CPU.cpp @@ -601,6 +601,10 @@ uint16_t imm_s = (uint)(int16_t)imm; } } +void CPU::op_break(instruction) { + console.err(57); +} + void CPU::loadBIOS(const char* filename) { FILE* file = fopen(filename, "rb"); if (!file) { @@ -662,6 +666,11 @@ void CPU::run() { switch (opcode) { case 0b000000: // R-type instructions switch (funct) { + case 0b001101: + // break + op_break(instruction); + console.log("CPU INSTRUCTION :: BREAK"); + break; case 0b100000: // Add op_add(instruction);