2019-02-22 18:00:53 +01:00
|
|
|
package apple2
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
2019-02-22 22:19:08 +01:00
|
|
|
type unassignedPage struct {
|
2019-02-22 18:00:53 +01:00
|
|
|
page uint8
|
|
|
|
}
|
|
|
|
|
2019-02-22 22:19:08 +01:00
|
|
|
func (p *unassignedPage) Peek(address uint8) uint8 {
|
2019-02-22 18:00:53 +01:00
|
|
|
fmt.Printf("Read on address 0x%02x%02x\n", p.page, address)
|
2019-02-22 22:19:08 +01:00
|
|
|
//panic(address)
|
2019-02-22 18:00:53 +01:00
|
|
|
return 0xcc
|
|
|
|
}
|
|
|
|
|
2019-02-22 22:19:08 +01:00
|
|
|
func (p *unassignedPage) Poke(address uint8, value uint8) {
|
2019-02-22 18:00:53 +01:00
|
|
|
fmt.Printf("Write on address 0x%02x%02x\n", p.page, address)
|
2019-02-22 22:19:08 +01:00
|
|
|
//panic(address)
|
2019-02-22 18:00:53 +01:00
|
|
|
}
|