mirror of
https://github.com/ivanizag/izapple2.git
synced 2024-12-30 15:30:08 +00:00
Remove setBase from memeryHandler, it is not needed
This commit is contained in:
parent
9611993c85
commit
e20e355f9f
@ -117,10 +117,8 @@ func (c *CardBrainBoard) updateState() {
|
||||
((!c.dip56_lowerInA && !c.isBankB) || (!c.dip78_upperInB && c.isBankB))
|
||||
|
||||
if isMotherboardRomEnabled && !c.isMotherboardRomEnabled {
|
||||
fmt.Print("ROM: main")
|
||||
c.a.mmu.inhibitROM(nil)
|
||||
} else if !isMotherboardRomEnabled && c.isMotherboardRomEnabled {
|
||||
fmt.Print("ROM: brain")
|
||||
c.a.mmu.inhibitROM(c)
|
||||
}
|
||||
|
||||
@ -159,7 +157,3 @@ func (c *CardBrainBoard) peek(address uint16) uint8 {
|
||||
func (c *CardBrainBoard) poke(address uint16, value uint8) {
|
||||
// Nothing
|
||||
}
|
||||
|
||||
func (c *CardBrainBoard) setBase(base uint16) {
|
||||
// Nothing
|
||||
}
|
||||
|
@ -120,7 +120,3 @@ func (c *CardBrainBoardII) peek(address uint16) uint8 {
|
||||
func (c *CardBrainBoardII) poke(address uint16, value uint8) {
|
||||
// Nothing
|
||||
}
|
||||
|
||||
func (c *CardBrainBoardII) setBase(base uint16) {
|
||||
// Nothing
|
||||
}
|
||||
|
@ -105,7 +105,3 @@ func (c *MultiRomCard) peek(address uint16) uint8 {
|
||||
func (c *MultiRomCard) poke(address uint16, value uint8) {
|
||||
// Nothing
|
||||
}
|
||||
|
||||
func (c *MultiRomCard) setBase(base uint16) {
|
||||
// Nothing
|
||||
}
|
||||
|
@ -135,7 +135,3 @@ func (c *CardSwyft) peek(address uint16) uint8 {
|
||||
func (c *CardSwyft) poke(address uint16, value uint8) {
|
||||
// Nothing
|
||||
}
|
||||
|
||||
func (c *CardSwyft) setBase(base uint16) {
|
||||
// Nothing
|
||||
}
|
||||
|
@ -123,10 +123,6 @@ func (c *CardVidex) poke(address uint16, value uint8) {
|
||||
}
|
||||
}
|
||||
|
||||
func (c *CardVidex) setBase(base uint16) {
|
||||
// Nothing
|
||||
}
|
||||
|
||||
const (
|
||||
videxCharWidth = uint8(8)
|
||||
)
|
||||
|
@ -164,10 +164,6 @@ func (p *ioC0Page) poke(address uint16, value uint8) {
|
||||
ss(value)
|
||||
}
|
||||
|
||||
func (p *ioC0Page) setBase(_ uint16) {
|
||||
// Ignore
|
||||
}
|
||||
|
||||
func ssFromBool(value bool) uint8 {
|
||||
if value {
|
||||
return ssOn
|
||||
|
@ -68,7 +68,6 @@ const (
|
||||
type memoryHandler interface {
|
||||
peek(uint16) uint8
|
||||
poke(uint16, uint8)
|
||||
setBase(uint16)
|
||||
}
|
||||
|
||||
func newMemoryManager(a *Apple2) *memoryManager {
|
||||
|
@ -141,10 +141,6 @@ func (nsc *noSlotClockDS1216) poke(address uint16, value uint8) {
|
||||
nsc.memory.poke(address, value)
|
||||
}
|
||||
|
||||
func (nsc *noSlotClockDS1216) setBase(base uint16) {
|
||||
nsc.memory.setBase(base)
|
||||
}
|
||||
|
||||
func (nsc *noSlotClockDS1216) loadTime() {
|
||||
now := time.Now()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user