Skip to content

Commit

Permalink
Make CPU fields private
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrakisk committed Oct 14, 2024
1 parent 6f79bda commit 3d8303d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/cpu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ enum FlagStates {

#[derive(Debug)]
pub struct CPU {
pub register_a: u8,
pub register_x: u8,
pub register_y: u8,
pub status: u8,
pub program_counter: u16,
pub stack_pointer: u8,
register_a: u8,
register_x: u8,
register_y: u8,
status: u8,
program_counter: u16,
stack_pointer: u8,
pub bus: Arc<Mutex<Bus>>,
}

Expand Down

0 comments on commit 3d8303d

Please sign in to comment.