mirror of
https://github.com/ariejan/i6502.git
synced 2024-09-29 06:54:46 +00:00
da43c2bca1
Because io.Reader and io.Writer already claim the functions Read and Write it was necessary to rename the Memory interface methods Read and Write to ReadByte and WriteByte.
12 lines
242 B
Go
12 lines
242 B
Go
package i6502
|
|
|
|
/*
|
|
Anything implementing the Memory interface can be attached to the AddressBus
|
|
and become accessible by the Cpu.
|
|
*/
|
|
type Memory interface {
|
|
Size() uint16
|
|
ReadByte(address uint16) byte
|
|
WriteByte(address uint16, data byte)
|
|
}
|