From 4a8ce96a237f3d242008189e167c1b73f96aceb8 Mon Sep 17 00:00:00 2001 From: Can Date: Sun, 19 Jan 2025 16:37:34 +0100 Subject: feat: Renderer fixes, cpu can cycle now --- src/ram.effekt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ram.effekt') 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) -- cgit v1.2.3