Skip to content

Commit

Permalink
update PSEMU/CPU.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherrytree56567 committed Oct 6, 2023
1 parent 1222f8f commit d779a38
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions PSEMU/CPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d779a38

Please sign in to comment.