Fix tests with the new PeekCode() in Memory

This commit is contained in:
Ivan Izaguirre 2020-08-16 15:41:21 +02:00
parent 0c7e4b7db2
commit 06704ed1e3

View File

@ -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