Skip to content

Commit

Permalink
clean up trace handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ava-silver committed Dec 29, 2023
1 parent 7c62e39 commit 3165940
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cpu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,10 @@ impl Mos6502 {
let opcode = self.fetch();

if let Some(handler) = &mut self.trace {
let trace = CpuTrace {
handler.handle(&CpuTrace {
opcode,
address: self.registers.pc.address() - 1,
};
handler.handle(&trace);
});

Check warning on line 177 in src/cpu/mod.rs

View check run for this annotation

Codecov / codecov/patch

src/cpu/mod.rs#L174-L177

Added lines #L174 - L177 were not covered by tests
}

match self.execute(opcode) {
Expand Down

0 comments on commit 3165940

Please sign in to comment.