Skip to content

Commit dfbe426

Browse files
committed
huge commit, preparing the base for 64bits support
1 parent e74a6f4 commit dfbe426

26 files changed

+3794
-2208
lines changed

Cargo.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "scemu"
3-
version = "0.2.6"
3+
version = "0.3.0"
44
authors = ["sha0coder <[email protected]>"]
55
edition = "2018"
66

@@ -12,3 +12,4 @@ clap = "2.33.3"
1212
md5 = "0.7.0"
1313
lazy_static = "1.4.0"
1414
attohttpc = "0.18.0"
15+
rand = "0.8.4"

src/config.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ pub struct Config {
1010
pub loops: bool, // loop mode count the iterations for every instruction, its slow.
1111
pub nocolors: bool, // to redirecting the output to a file is better to remove colors.
1212
pub trace_string: bool,
13-
pub string_addr: u32,
13+
pub string_addr: u64,
1414
pub inspect: bool,
1515
pub inspect_seq: String,
1616
pub endpoint: bool,
1717
pub maps_folder: String,
1818
pub console2: bool,
19-
pub console_addr: u32,
20-
pub entry_point: u32,
21-
pub code_base_addr: u32,
22-
pub is_64: bool, // 64bits mode
19+
pub console_addr: u64,
20+
pub entry_point: u64,
21+
pub code_base_addr: u64,
22+
pub is_64bits: bool, // 64bits mode
2323
}
2424

2525
impl Config {
@@ -44,7 +44,7 @@ impl Config {
4444
console_addr: 0,
4545
entry_point: 0x3c0000,
4646
code_base_addr: 0x3c0000,
47-
is_64: false,
47+
is_64bits: false,
4848
}
4949
}
5050
}

0 commit comments

Comments
 (0)