From 06704ed1e321ba1f30304fefaa34cee73daeb9fc Mon Sep 17 00:00:00 2001 From: Ivan Izaguirre Date: Sun, 16 Aug 2020 15:41:21 +0200 Subject: [PATCH] Fix tests with the new PeekCode() in Memory --- core6502/memory.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core6502/memory.go b/core6502/memory.go index 40c47d1..178081c 100644 --- a/core6502/memory.go +++ b/core6502/memory.go @@ -30,6 +30,11 @@ func (m *FlatMemory) Peek(address uint16) uint8 { return m.data[address] } +// PeekCode returns the data on the given address +func (m *FlatMemory) PeekCode(address uint16) uint8 { + return m.data[address] +} + // Poke sets the data at the given address func (m *FlatMemory) Poke(address uint16, value uint8) { m.data[address] = value