connectToPort stub, acknowledge configuration memory

This commit is contained in:
wheremyfoodat 2022-09-17 02:02:45 +03:00
parent 8bb494229d
commit aa643c44bb
5 changed files with 27 additions and 1 deletions

View file

@ -1,6 +1,8 @@
#include "memory.hpp"
#include "config_mem.hpp"
#include <cassert>
Memory::Memory() {
fcram = new uint8_t[FCRAM_SIZE]();
readTable.resize(totalPageCount, 0);
@ -122,7 +124,10 @@ u8 Memory::read8(u32 vaddr) {
return *(u8*)(pointer + offset);
}
else {
Helpers::panic("Unimplemented 8-bit read, addr: %08X", vaddr);
switch (vaddr) {
case ConfigMem::KernelVersionMinor: return 38;
default: Helpers::panic("Unimplemented 8-bit read, addr: %08X", vaddr);
}
}
}