Fix memory mapping
This commit is contained in:
parent
c14a89050c
commit
1e3e520d0e
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ impl Data {
|
||||||
// } else if address < (40 * 1024) {
|
// } else if address < (40 * 1024) {
|
||||||
// Ok(self.stack[(address - (32 * 1024)) as usize])
|
// Ok(self.stack[(address - (32 * 1024)) as usize])
|
||||||
} else if address < (48 * 1024) {
|
} else if address < (48 * 1024) {
|
||||||
Ok(self.memory[(address - (40 * 1024)) as usize])
|
Ok(self.memory[(address - (32 * 1024)) as usize])
|
||||||
} else if address == (48 * 1024 + 2) {
|
} else if address == (48 * 1024 + 2) {
|
||||||
Ok(self.term.read_char()? as u16)
|
Ok(self.term.read_char()? as u16)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue