aboutsummaryrefslogtreecommitdiff
path: root/core.go
diff options
context:
space:
mode:
Diffstat (limited to 'core.go')
-rw-r--r--core.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/core.go b/core.go
index 2c262b8..b06c029 100644
--- a/core.go
+++ b/core.go
@@ -70,9 +70,9 @@ func (c *Core) writeAt(addr, value uint16) error {
c.memory[addr>>1] = value
}
switch addr {
- case 0xf000: // key
+ case 0x7000: // key
c.console.Write(value)
- case 0xf002: // bye
+ case 0x7002: // bye
return ErrStop
}
return nil
@@ -83,9 +83,9 @@ func (c *Core) readAt(addr uint16) uint16 {
return c.memory[addr>>1]
}
switch addr {
- case 0xf000: // tx!
+ case 0x7000: // tx!
return c.console.Read()
- case 0xf001: // ?rx
+ case 0x7001: // ?rx
return c.console.Len()
}
return 0