mirror of
https://github.com/ivanizag/izapple2.git
synced 2025-01-14 07:30:04 +00:00
Original BrainBoard card
This commit is contained in:
parent
36faa6e906
commit
e17033329d
@ -72,6 +72,10 @@ func (c *cardBase) loadRom(data []uint8) {
|
||||
// The file covers the full Cxxx range. Only showing the page
|
||||
// corresponding to the slot used.
|
||||
c.romCxxx = newMemoryRangeROM(0xc000, data, "Slot ROM")
|
||||
} else if len(data)%0x100 == 0 {
|
||||
// The ROM covers many 256 bytes pages oc Csxx
|
||||
// Used on the Dan 2 controller card
|
||||
c.romCsxx = newMemoryRangePagedROM(0, data, "Slot paged ROM", uint8(len(data)/0x100))
|
||||
} else {
|
||||
panic("Invalid ROM size")
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ func getCardFactory() map[string]*cardBuilder {
|
||||
return cardFactory
|
||||
}
|
||||
cardFactory = make(map[string]*cardBuilder)
|
||||
//cardFactory["brainboard"] = newCardBrainBoardBuilder()
|
||||
cardFactory["brainboard"] = newCardBrainBoardBuilder()
|
||||
cardFactory["brainboard2"] = newCardBrainBoardIIBuilder()
|
||||
//cardFactory["dan2sd"] = newCardDan2ControllerBuilder()
|
||||
cardFactory["diskii"] = newCardDisk2Builder()
|
||||
|
Loading…
x
Reference in New Issue
Block a user