diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-19 09:59:34 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-19 11:00:54 +0100 |
| commit | 42ebea54e35062a1a998f25e8fe019a5e0205fd9 (patch) | |
| tree | e947d2c86083da913595354d42e98fc74c831865 /lib/xixanta/fuzz/fuzz_targets | |
| parent | 9d9f10295059df278ed558142ce6c58c4f6a634e (diff) | |
| download | tools.nes-42ebea54e35062a1a998f25e8fe019a5e0205fd9.tar.gz tools.nes-42ebea54e35062a1a998f25e8fe019a5e0205fd9.zip | |
Implement the .incbin control statement
This also forced us to add the current working directory to the
`Assembler::assemble` public function, as otherwise this control
statement and others wouldn't know how to resolve relative paths.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'lib/xixanta/fuzz/fuzz_targets')
| -rw-r--r-- | lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs b/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs index 111bae9..db33241 100644 --- a/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs +++ b/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs @@ -6,5 +6,5 @@ use xixanta::mapping::EMPTY; fuzz_target!(|data: &[u8]| { let mut asm = Assembler::new(EMPTY.to_vec()); - let _ = asm.assemble(data); + let _ = asm.assemble(std::env::current_dir().unwrap().to_path_buf(), data); }); |
