mirror of
https://github.com/ariejan/i6502.git
synced 2025-01-15 00:32:19 +00:00
12 lines
234 B
Go
12 lines
234 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
|
|
Read(address uint16) byte
|
|
Write(address uint16, data byte)
|
|
}
|