Skip to content

Commit 741632e

Browse files
committed
Fix minor bug in PC supervision
1 parent 4d3a61d commit 741632e

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,6 @@ The binary is based on the `emulator-2a-lib` library, that is contained in this
246246
**Contributions are very welcome!** Additionally, other frontends could be added. I.e. a web-based
247247
emulator is planned and might be added in the future.
248248

249-
Current version: 8.1.0
249+
Current version: 8.1.1
250250

251251
License: GPL-3.0

emulator-2a-lib/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "emulator-2a-lib"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
authors = ["Malte Tammena <[email protected]>"]
55
edition = "2018"
66
license = "GPL-3.0"

emulator-2a-lib/src/machine/raw/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,9 @@ impl RawMachine {
305305
// XXX: How exactly does the original compare these values?
306306
pc <= *n
307307
} else {
308-
panic!("BUG: The programsize cannot be AUTO or UNSET at this point");
308+
trace!("The program size is auto: Assuming that no program has been loaded!");
309+
// If no program is loaded, the program counter can only be zero
310+
pc == 0
309311
}
310312
}
311313

emulator-2a/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "emulator-2a"
3-
version = "8.1.0"
3+
version = "8.1.1"
44
authors = ["Malte Tammena <[email protected]>"]
55
edition = "2018"
66
license = "GPL-3.0"

0 commit comments

Comments
 (0)