mirror of
https://github.com/ivanizag/izapple2.git
synced 2025-01-20 17:32:22 +00:00
19 lines
345 B
Go
19 lines
345 B
Go
|
package apple2
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
type tracePage struct {
|
||
|
page uint8
|
||
|
}
|
||
|
|
||
|
func (p *tracePage) Peek(address uint8) uint8 {
|
||
|
fmt.Printf("Read on address 0x%02x%02x\n", p.page, address)
|
||
|
panic(address)
|
||
|
return 0xcc
|
||
|
}
|
||
|
|
||
|
func (p *tracePage) Poke(address uint8, value uint8) {
|
||
|
fmt.Printf("Write on address 0x%02x%02x\n", p.page, address)
|
||
|
panic(address)
|
||
|
}
|