Emulator: Use formatting library print function

This commit is contained in:
Riyyi
2022-08-18 14:36:24 +02:00
parent 2c3109e795
commit c159e09ce3
+3 -3
View File
@@ -6,10 +6,10 @@
*/
#include <cstdint> // uint8_t, uint32_t
#include <iostream>
#include "cpu.h"
#include "emu.h"
#include "ruc/format/print.h"
CPU::CPU(uint32_t frequency)
: ProcessingUnit(frequency)
@@ -27,9 +27,9 @@ void CPU::update()
// Read next opcode
}
printf("This is an update from the CPU\n");
print("This is an update from the CPU\n");
Emu::the().writeMemory("RAM", 123, 42);
printf("fff");
print("fff");
}
void CPU::add(uint8_t opcode, uint8_t immediate)