From 57576aaf9b286a60456dfea0fe4136bd9bf32964 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Thu, 18 Aug 2022 01:58:57 +0200 Subject: [PATCH] Emulator: Use formatting library print function --- src/emu.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/emu.cpp b/src/emu.cpp index fb303a3..494873c 100644 --- a/src/emu.cpp +++ b/src/emu.cpp @@ -1,7 +1,6 @@ -#include - -#include "cpu.h" #include "emu.h" +#include "cpu.h" +#include "ruc/format/print.h" 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) { - printf("%s %d %d\n", memory_space, location, value); + print("{} {} {}\n", memory_space, location, value); m_memory_spaces[memory_space][location] = value; }