Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherrytree56567 committed Oct 3, 2023
1 parent e338f18 commit c966a5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions PSEMU/CPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,6 @@ void CPU::loadBIOS(const char* filename) {
// Calculate the number of 32-bit chunks
size_t numChunks = (fileSize + sizeof(uint32_t) - 1) / sizeof(uint32_t);

Logging console;
console.log("NumChunks " + std::to_string(numChunks));

// Allocate memory for the array
Expand Down Expand Up @@ -672,7 +671,6 @@ void CPU::loadInstructions() {
}

void CPU::run() {
Logging console;
registers.pc = 0; // Start from the beginning of memory

while (registers.pc < numInstructions * 4) {
Expand Down Expand Up @@ -956,6 +954,7 @@ void CPU::run() {
op_sw(instruction);
console.log("CPU INSTRUCTION :: SW");
break;


default:
Logging console;
Expand Down
1 change: 1 addition & 0 deletions PSEMU/CPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class CPU {
uint32_t* BiosCode;
Coprocessor0 coprocessor0;
Memory& memory;
Logging console;
bool checkForInterrupts() {
// Check if there is an interrupt request
uint32_t status = registers.getC0Register(coprocessor0.STATUS);
Expand Down

0 comments on commit c966a5f

Please sign in to comment.