File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ import (
2626)
2727
2828const (
29- kernalPath = "rom/kernal.rom"
29+ kernalPath = "rom/kernal.rom"
30+ charRomPath = "rom/char.rom"
3031)
3132
3233func main () {
@@ -44,6 +45,11 @@ func mainReturningStatus() int {
4445 panic (err )
4546 }
4647
48+ charRom , err := memory .RomFromFile (charRomPath )
49+ if err != nil {
50+ panic (err )
51+ }
52+
4753 ram := & memory.Ram {}
4854
4955 via := via6522 .NewVia6522 (via6522.Options {
@@ -92,8 +98,9 @@ func mainReturningStatus() int {
9298
9399 addressBus , _ := bus .CreateBus ()
94100 addressBus .Attach (ram , "ram" , 0x0000 )
95- addressBus .Attach (via , "VIA" , 0xC000 )
96- addressBus .Attach (kernal , "kernal" , 0xE000 )
101+ addressBus .Attach (via , "VIA" , 0x9000 )
102+ addressBus .Attach (charRom , "char" , 0xB000 )
103+ addressBus .Attach (kernal , "kernal" , 0xF000 )
97104
98105 exitChan := make (chan int , 0 )
99106
You can’t perform that action at this time.
0 commit comments