Remove setBase from memeryHandler, it is not needed

This commit is contained in:
Iván Izaguirre 2024-03-04 21:36:45 +01:00
parent 9611993c85
commit e20e355f9f
8 changed files with 0 additions and 31 deletions

View File

@ -117,10 +117,8 @@ func (c *CardBrainBoard) updateState() {
((!c.dip56_lowerInA && !c.isBankB) || (!c.dip78_upperInB && c.isBankB)) ((!c.dip56_lowerInA && !c.isBankB) || (!c.dip78_upperInB && c.isBankB))
if isMotherboardRomEnabled && !c.isMotherboardRomEnabled { if isMotherboardRomEnabled && !c.isMotherboardRomEnabled {
fmt.Print("ROM: main")
c.a.mmu.inhibitROM(nil) c.a.mmu.inhibitROM(nil)
} else if !isMotherboardRomEnabled && c.isMotherboardRomEnabled { } else if !isMotherboardRomEnabled && c.isMotherboardRomEnabled {
fmt.Print("ROM: brain")
c.a.mmu.inhibitROM(c) c.a.mmu.inhibitROM(c)
} }
@ -159,7 +157,3 @@ func (c *CardBrainBoard) peek(address uint16) uint8 {
func (c *CardBrainBoard) poke(address uint16, value uint8) { func (c *CardBrainBoard) poke(address uint16, value uint8) {
// Nothing // Nothing
} }
func (c *CardBrainBoard) setBase(base uint16) {
// Nothing
}

View File

@ -120,7 +120,3 @@ func (c *CardBrainBoardII) peek(address uint16) uint8 {
func (c *CardBrainBoardII) poke(address uint16, value uint8) { func (c *CardBrainBoardII) poke(address uint16, value uint8) {
// Nothing // Nothing
} }
func (c *CardBrainBoardII) setBase(base uint16) {
// Nothing
}

View File

@ -105,7 +105,3 @@ func (c *MultiRomCard) peek(address uint16) uint8 {
func (c *MultiRomCard) poke(address uint16, value uint8) { func (c *MultiRomCard) poke(address uint16, value uint8) {
// Nothing // Nothing
} }
func (c *MultiRomCard) setBase(base uint16) {
// Nothing
}

View File

@ -135,7 +135,3 @@ func (c *CardSwyft) peek(address uint16) uint8 {
func (c *CardSwyft) poke(address uint16, value uint8) { func (c *CardSwyft) poke(address uint16, value uint8) {
// Nothing // Nothing
} }
func (c *CardSwyft) setBase(base uint16) {
// Nothing
}

View File

@ -123,10 +123,6 @@ func (c *CardVidex) poke(address uint16, value uint8) {
} }
} }
func (c *CardVidex) setBase(base uint16) {
// Nothing
}
const ( const (
videxCharWidth = uint8(8) videxCharWidth = uint8(8)
) )

View File

@ -164,10 +164,6 @@ func (p *ioC0Page) poke(address uint16, value uint8) {
ss(value) ss(value)
} }
func (p *ioC0Page) setBase(_ uint16) {
// Ignore
}
func ssFromBool(value bool) uint8 { func ssFromBool(value bool) uint8 {
if value { if value {
return ssOn return ssOn

View File

@ -68,7 +68,6 @@ const (
type memoryHandler interface { type memoryHandler interface {
peek(uint16) uint8 peek(uint16) uint8
poke(uint16, uint8) poke(uint16, uint8)
setBase(uint16)
} }
func newMemoryManager(a *Apple2) *memoryManager { func newMemoryManager(a *Apple2) *memoryManager {

View File

@ -141,10 +141,6 @@ func (nsc *noSlotClockDS1216) poke(address uint16, value uint8) {
nsc.memory.poke(address, value) nsc.memory.poke(address, value)
} }
func (nsc *noSlotClockDS1216) setBase(base uint16) {
nsc.memory.setBase(base)
}
func (nsc *noSlotClockDS1216) loadTime() { func (nsc *noSlotClockDS1216) loadTime() {
now := time.Now() now := time.Now()