Original BrainBoard card

This commit is contained in:
Ivan Izaguirre 2024-01-27 17:21:40 +01:00
parent 36faa6e906
commit e17033329d
2 changed files with 5 additions and 1 deletions

View File

@ -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")
}

View File

@ -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()