Skip to content

Commit

Permalink
flatten cpu struct fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jauhararifin committed Nov 24, 2023
1 parent 1312d29 commit 1c84414
Show file tree
Hide file tree
Showing 2 changed files with 261 additions and 264 deletions.
2 changes: 1 addition & 1 deletion bus.mg
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn read(addr: u16): u8 {
fmt::print_str(",result=");
fmt::print_u8(data);
fmt::print_str(",pc=");
fmt::print_u16(the_cpu.reg.pc.*);
fmt::print_u16(the_cpu.pc.*);
fmt::print_str(".\n");
}
return data;
Expand Down
Loading

0 comments on commit 1c84414

Please sign in to comment.