aboutsummaryrefslogtreecommitdiff
path: root/cpu/bus.go
diff options
context:
space:
mode:
authorcrecher <crecher@crecher.net>2026-10-12 03:44:25 +0200
committercrecher <crecher@crecher.net>2026-10-12 03:44:25 +0200
commit7775f9ad5407f2be4b03c300d1db4c745fda2f69 (patch)
tree857bed544f0c3161aa5d561c54f0a112feb0b178 /cpu/bus.go
downloadgones-7775f9ad5407f2be4b03c300d1db4c745fda2f69.tar.gz
gones-7775f9ad5407f2be4b03c300d1db4c745fda2f69.zip
initial commit
Diffstat (limited to 'cpu/bus.go')
-rw-r--r--cpu/bus.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpu/bus.go b/cpu/bus.go
new file mode 100644
index 0000000..68c042e
--- /dev/null
+++ b/cpu/bus.go
@@ -0,0 +1,6 @@
+package cpu
+
+type Bus interface {
+ Read(addr uint16) uint8
+ Write(addr uint16, val uint8)
+}