package cpu type Bus interface { Read(addr uint16) uint8 Write(addr uint16, val uint8) }