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