aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-07-16 11:12:26 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-12 07:32:52 +0100
commit7822c00e8689c99ded0a360026f4e7ace1f2c87f (patch)
treee2bc22aeea0a172ee7aee5e4a2a4b603a495b9b8 /crates
parentc6c9aa4e5f3e5a01fcb9ccabf6dbd2f6da277650 (diff)
downloadtools.nes-7822c00e8689c99ded0a360026f4e7ace1f2c87f.tar.gz
tools.nes-7822c00e8689c99ded0a360026f4e7ace1f2c87f.zip
Add support for branching
This is a bare bones implementation of it, and there's a lot of nuance that it's being missed, but at least the fundamentals have been implemented already. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'crates')
-rw-r--r--crates/nasm/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/nasm/src/main.rs b/crates/nasm/src/main.rs
index 579ec02..940e04b 100644
--- a/crates/nasm/src/main.rs
+++ b/crates/nasm/src/main.rs
@@ -35,8 +35,8 @@ fn main() -> Result<()> {
// TODO: provide a handier way for this.
let mut assembler = Assembler::new(vec![Segment {
name: String::from("CODE"),
- start: 0x00,
- size: 0x10000,
+ start: 0x1000,
+ size: 10,
fill_value: Some(Fill { value: 0x00 }),
}]);