Skip to content

Commit

Permalink
Ignore writes to ROM area. oops
Browse files Browse the repository at this point in the history
  • Loading branch information
tomm committed Nov 16, 2024
1 parent 676eed3 commit 52b0bf2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
members = ["agon-light-emulator-debugger"]

[workspace.package]
version = "0.9.69"
version = "0.9.70"
edition = "2021"
authors = ["Tom Morton <[email protected]>"]
license = "GPL-3.0"
Expand Down
2 changes: 0 additions & 2 deletions agon-ez80-emulator/src/agon_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ impl Machine for AgonMachine {

if let Some(onchip_ram_addr) = self.get_internal_ram_address(address) {
self.mem_internal[onchip_ram_addr as usize] = value;
} else if let Some(rom_addr) = self.get_rom_address(address) {
self.mem_rom[rom_addr as usize] = value;
} else if let Some(ram_addr) = self.get_external_ram_address(address) {
self.mem_external[ram_addr as usize] = value;
} else {
Expand Down

0 comments on commit 52b0bf2

Please sign in to comment.