Update copyright notices
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// (c) 2023 John A. Breaux
|
||||
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||
// This code is licensed under MIT license (see LICENSE for details)
|
||||
|
||||
//! Chirp: A chip-8 interpreter in Rust
|
||||
//! Hello, world!
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// (c) 2023 John A. Breaux
|
||||
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||
// This code is licensed under MIT license (see LICENSE for details)
|
||||
#![allow(missing_docs)]
|
||||
//! Platform-specific IO/UI code, and some debug functionality.
|
||||
//! TODO: Destroy this all.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// (c) 2023 John A. Breaux
|
||||
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||
// This code is licensed under MIT license (see LICENSE for details)
|
||||
|
||||
//! Decodes and runs instructions
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// (c) 2023 John A. Breaux
|
||||
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||
// This code is licensed under MIT license (see LICENSE for details)
|
||||
|
||||
//! The Bus connects the CPU to Memory
|
||||
//!
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// (c) 2023 John A. Breaux
|
||||
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||
// This code is licensed under MIT license (see LICENSE for details)
|
||||
|
||||
//! Trait for getting a generic integer for a structure.
|
||||
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
// (c) 2023 John A. Breaux
|
||||
// This code is licensed under MIT license (see LICENSE for details)
|
||||
|
||||
//! Represents [Flags] that aid in implementation but aren't a part of the Chip-8 spec
|
||||
|
||||
use super::{Mode, Quirks};
|
||||
|
||||
/// Represents flags that aid in implementation but aren't a part of the Chip-8 spec
|
||||
#[derive(Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub struct Flags {
|
||||
/// Set when debug (live disassembly) mode enabled
|
||||
pub debug: bool,
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// (c) 2023 John A. Breaux
|
||||
// This code is licensed under MIT license (see LICENSE for details)
|
||||
|
||||
//! Selects the memory behavior of the [super::CPU]
|
||||
//!
|
||||
//! Since [Quirks] implements [`From<Mode>`],
|
||||
@@ -8,7 +11,8 @@ use crate::error::Error;
|
||||
use std::str::FromStr;
|
||||
|
||||
/// Selects the memory behavior of the interpreter
|
||||
#[derive(Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub enum Mode {
|
||||
/// VIP emulation mode
|
||||
#[default]
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
// (c) 2023 John A. Breaux
|
||||
// This code is licensed under MIT license (see LICENSE for details)
|
||||
|
||||
//! Controls the [Quirks] behavior of the CPU on a granular level.
|
||||
|
||||
/// Controls the quirk behavior of the CPU on a granular level.
|
||||
///
|
||||
/// `false` is Cosmac-VIP-like behavior
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub struct Quirks {
|
||||
/// Super Chip: Binary ops in `8xy`(`1`, `2`, `3`) shouldn't set vF to 0
|
||||
pub bin_ops: bool,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// (c) 2023 John A. Breaux
|
||||
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||
// This code is licensed under MIT license (see LICENSE for details)
|
||||
|
||||
//! Unit tests for [super::CPU]
|
||||
//!
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// (c) 2023 John A. Breaux
|
||||
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||
// This code is licensed under MIT license (see LICENSE for details)
|
||||
|
||||
//! Error type for Chirp
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// (c) 2023 John A. Breaux
|
||||
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||
#![cfg_attr(feature = "unstable", feature(no_coverage))]
|
||||
// This code is licensed under MIT license (see LICENSE for details)
|
||||
#![cfg_attr(feature = "nightly", feature(no_coverage))]
|
||||
#![deny(missing_docs, clippy::all)]
|
||||
//! This crate implements a Chip-8 interpreter as if it were a real CPU architecture,
|
||||
//! to the best of my current knowledge. As it's the first emulator project I've
|
||||
|
||||
Reference in New Issue
Block a user