mirror of
https://github.com/freewilll/apple2-go.git
synced 2024-09-27 01:55:21 +00:00
Removed ROM code for slots that haven't been implemented yet
This commit is contained in:
parent
389773cb1d
commit
fb6d868bc3
14
mmu/mmu.go
14
mmu/mmu.go
@ -75,6 +75,14 @@ func MapSecondHalfOfIO(m *Memory) {
|
||||
}
|
||||
}
|
||||
|
||||
// emptySlot zeroes all RAM for a slot
|
||||
func emptySlot(m *Memory, slot int) {
|
||||
for i := slot * 0x100; i < (slot+1)*0x100; i++ {
|
||||
m.PhysicalMemory.RomC1[i] = 0
|
||||
m.PhysicalMemory.RomC2[i] = 0
|
||||
}
|
||||
}
|
||||
|
||||
func readApple2eROM(m *Memory) {
|
||||
bytes, err := ioutil.ReadFile(RomPath)
|
||||
if err != nil {
|
||||
@ -91,6 +99,12 @@ func readApple2eROM(m *Memory) {
|
||||
for i := 0x0; i < 0x3000; i++ {
|
||||
m.PhysicalMemory.UpperROM[i] = bytes[i+0x1000]
|
||||
}
|
||||
|
||||
// Empty slots that aren't yet implemented
|
||||
emptySlot(m, 3)
|
||||
emptySlot(m, 4)
|
||||
emptySlot(m, 6)
|
||||
emptySlot(m, 7)
|
||||
}
|
||||
|
||||
func InitApple2eROM(m *Memory) {
|
||||
|
Loading…
Reference in New Issue
Block a user