Skip to content

Commit

Permalink
Original BrainBoard card
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanizag committed Jan 27, 2024
1 parent 36faa6e commit e170333
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cardBase.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
2 changes: 1 addition & 1 deletion cardBuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e170333

Please sign in to comment.