Browse Source

Emulator: Use formatting library print function

master
Riyyi 2 years ago
parent
commit
57576aaf9b
  1. 7
      src/emu.cpp

7
src/emu.cpp

@ -1,7 +1,6 @@
#include <iostream>
#include "cpu.h"
#include "emu.h" #include "emu.h"
#include "cpu.h"
#include "ruc/format/print.h"
void Emu::init(unsigned int frequency) void Emu::init(unsigned int frequency)
{ {
@ -31,7 +30,7 @@ void Emu::addMemorySpace(const char* name, int size)
void Emu::writeMemory(const char* memory_space, unsigned int location, uint8_t value) void Emu::writeMemory(const char* memory_space, unsigned int location, uint8_t value)
{ {
printf("%s %d %d\n", memory_space, location, value); print("{} {} {}\n", memory_space, location, value);
m_memory_spaces[memory_space][location] = value; m_memory_spaces[memory_space][location] = value;
} }

Loading…
Cancel
Save