mirror of
https://github.com/zellyn/goapple2.git
synced 2024-11-26 18:51:08 +00:00
32 lines
355 B
Go
32 lines
355 B
Go
package disk
|
|
|
|
type Dummy byte
|
|
|
|
func (v Dummy) Read() byte {
|
|
return 0x00
|
|
}
|
|
|
|
func (v Dummy) Skip(int) {
|
|
// pass
|
|
}
|
|
|
|
func (v Dummy) Write(b byte) {
|
|
// pass
|
|
}
|
|
|
|
func (v Dummy) SetHalfTrack(t byte) {
|
|
// pass
|
|
}
|
|
|
|
func (v Dummy) HalfTrack() byte {
|
|
return 0
|
|
}
|
|
|
|
func (v Dummy) Writeable() bool {
|
|
return false
|
|
}
|
|
|
|
func NewDummy(v byte) Dummy {
|
|
return Dummy(v)
|
|
}
|