Initial commit for basics need a refresher.

This commit is contained in:
2026-04-16 07:34:21 +02:00
parent 67dc2470e0
commit 12c42d9563
5 changed files with 141 additions and 0 deletions

20
internal/bus/bus.go Normal file
View File

@@ -0,0 +1,20 @@
package bus
type MainBus struct {
// add ram etc here
}
func New() *MainBus {
return &MainBus{}
}
// Just a test read for now, need to figure wtf is happening...
func (b *MainBus) Read(address uint16) uint8 {
// Just testing with NOPs
return 0xEA
}
func (b *MainBus) Write(address uint16, data uint8) {
// Need to write data to the actual ram.
}