diff options
author | Can | 2025-01-19 16:37:34 +0100 |
---|---|---|
committer | Can | 2025-01-19 16:37:34 +0100 |
commit | 4a8ce96a237f3d242008189e167c1b73f96aceb8 (patch) | |
tree | ab04edc95d301df3b2f1d30db664b9be4f8c27ff /src/ram.effekt | |
parent | f54eb0b9890062e5757297b7a3a013df23ae79d7 (diff) |
feat: Renderer fixes, cpu can cycle now
Diffstat (limited to 'src/ram.effekt')
-rw-r--r-- | src/ram.effekt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ram.effekt b/src/ram.effekt index 07f49cc..07a5350 100644 --- a/src/ram.effekt +++ b/src/ram.effekt @@ -3,8 +3,8 @@ module src/ram import bytearray interface Ram { - def get(address: Int): Byte - def set(address: Int, byte: Byte): Unit + def getAddr(address: Int): Byte + def setAddr(address: Int, byte: Byte): Unit def init(rom: ByteArray): Unit } @@ -46,8 +46,8 @@ def loadRom(ram: ByteArray, rom: ByteArray): Unit = rom.foreachIndex { (i, byte) def makeRam() = { var ram: ByteArray in global = allocate(4096) // 4KB of memory new Ram { - def get(address: Int) = get(ram, address) - def set(address: Int, byte: Byte) = set(ram, address, byte) + def getAddr(address: Int) = get(ram, address) + def setAddr(address: Int, byte: Byte) = set(ram, address, byte) def init(rom: ByteArray) = { loadFont(ram) loadRom(ram, rom) |