Initial commit for basics need a refresher.
This commit is contained in:
20
internal/bus/bus.go
Normal file
20
internal/bus/bus.go
Normal 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.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user