Browse Source

Emulator: Dont take a signed number as size

master
Riyyi 2 years ago
parent
commit
de2237fac2
  1. 2
      src/emu.cpp
  2. 2
      src/emu.h

2
src/emu.cpp

@ -24,7 +24,7 @@ void Emu::addProcessingUnit(ProcessingUnit* processing_unit)
m_processing_units.push_back(processing_unit);
}
void Emu::addMemorySpace(const char* name, int size)
void Emu::addMemorySpace(const char* name, uint32_t size)
{
std::vector<uint8_t> memory(size);
m_memory_spaces.emplace(name, memory);

2
src/emu.h

@ -16,7 +16,7 @@ public:
void update();
void addProcessingUnit(ProcessingUnit* processing_unit);
void addMemorySpace(const char* name, int size);
void addMemorySpace(const char* name, uint32_t size);
void writeMemory(const char* memory_space, uint32_t location, uint8_t value);

Loading…
Cancel
Save