Skip to content

Commit

Permalink
changed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferryistaken committed Apr 1, 2024
1 parent bc8125e commit eddd4c1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/chip8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@ pub struct Chip8 {
impl Chip8 {
/// Create a new chip8 instance with an empty `rom`, ready for use
///
/// # Example:
///
/// ```
/// let mut chip8: Chip8 = Chip8::new();
///
/// chip.load_rom(path);
///
/// let rom: PathBuf = '...';
/// let speed: u64 = 30;
///
/// loop {
///
/// chip8.Cycle();
/// chip8.pretty_print_video(rom);
/// thread::sleep(time::Duration::from_millis(speed);
/// }
/// ```
///
/// ## Values
///
/// * `registers`: all zeroes
Expand Down

0 comments on commit eddd4c1

Please sign in to comment.