LICENSE: Add MIT Licence
This commit is contained in:
parent
f90f1c49cc
commit
0e91b103ed
@ -2,6 +2,8 @@
|
|||||||
name = "chirp"
|
name = "chirp"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
authors = ["John Breaux"]
|
||||||
|
license = "MIT"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
|
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2023 John A. Breaux
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
@ -1,4 +1,8 @@
|
|||||||
|
// (c) 2023 John A. Breaux
|
||||||
|
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||||
|
|
||||||
//! The Bus connects the CPU to Memory
|
//! The Bus connects the CPU to Memory
|
||||||
|
//! This is more of a memory management unit + some utils for reading/writing
|
||||||
|
|
||||||
use crate::error::Result;
|
use crate::error::Result;
|
||||||
use std::{
|
use std::{
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// (c) 2023 John A. Breaux
|
||||||
|
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||||
|
|
||||||
//! Decodes and runs instructions
|
//! Decodes and runs instructions
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// (c) 2023 John A. Breaux
|
||||||
|
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||||
|
|
||||||
//! A disassembler for Chip-8 opcodes
|
//! A disassembler for Chip-8 opcodes
|
||||||
|
|
||||||
use super::{Adr, Nib, Reg};
|
use super::{Adr, Nib, Reg};
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// (c) 2023 John A. Breaux
|
||||||
|
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||||
|
|
||||||
//! Represents a chip-8 instruction as a Rust enum
|
//! Represents a chip-8 instruction as a Rust enum
|
||||||
|
|
||||||
use super::{Adr, Nib, Reg};
|
use super::{Adr, Nib, Reg};
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// (c) 2023 John A. Breaux
|
||||||
|
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||||
|
|
||||||
//! Tests for cpu.rs
|
//! Tests for cpu.rs
|
||||||
//!
|
//!
|
||||||
//! These run instructions, and ensure their output is consistent with previous builds
|
//! These run instructions, and ensure their output is consistent with previous builds
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// (c) 2023 John A. Breaux
|
||||||
|
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||||
|
|
||||||
//! Error type for chumpulator
|
//! Error type for chumpulator
|
||||||
|
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
@ -14,5 +17,5 @@ pub enum Error {
|
|||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
IoError(#[from] std::io::Error),
|
IoError(#[from] std::io::Error),
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
WindowError(#[from] minifb::Error)
|
WindowError(#[from] minifb::Error),
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// (c) 2023 John A. Breaux
|
||||||
|
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||||
|
|
||||||
//! Platform-specific IO/UI code, and some debug functionality.
|
//! Platform-specific IO/UI code, and some debug functionality.
|
||||||
//! TODO: Break this into its own crate.
|
//! TODO: Break this into its own crate.
|
||||||
|
|
||||||
|
17
src/lib.rs
17
src/lib.rs
@ -1,11 +1,12 @@
|
|||||||
#![feature(stmt_expr_attributes)]
|
// (c) 2023 John A. Breaux
|
||||||
/*!
|
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||||
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
|
|
||||||
embarked on, and I'm fairly new to Rust, it's going to be rough around the edges.
|
|
||||||
|
|
||||||
Hopefully, though, you'll find some use in it.
|
#![feature(stmt_expr_attributes)]
|
||||||
*/
|
//! 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
|
||||||
|
//! embarked on, and I'm fairly new to Rust, it's going to be rough around the edges.
|
||||||
|
//!
|
||||||
|
//! Hopefully, though, you'll find some use in it.
|
||||||
|
|
||||||
pub mod bus;
|
pub mod bus;
|
||||||
pub mod cpu;
|
pub mod cpu;
|
||||||
@ -20,8 +21,8 @@ pub struct Chip8 {
|
|||||||
|
|
||||||
/// Common imports for chumpulator
|
/// Common imports for chumpulator
|
||||||
pub mod prelude {
|
pub mod prelude {
|
||||||
use super::*;
|
|
||||||
pub use super::Chip8;
|
pub use super::Chip8;
|
||||||
|
use super::*;
|
||||||
pub use crate::bus;
|
pub use crate::bus;
|
||||||
pub use bus::{Bus, Read, Region::*, Write};
|
pub use bus::{Bus, Read, Region::*, Write};
|
||||||
pub use cpu::{disassemble::Disassemble, ControlFlags, CPU};
|
pub use cpu::{disassemble::Disassemble, ControlFlags, CPU};
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// (c) 2023 John A. Breaux
|
||||||
|
// This code is licensed under MIT license (see LICENSE.txt for details)
|
||||||
|
|
||||||
//! Chirp: A chip-8 interpreter in Rust
|
//! Chirp: A chip-8 interpreter in Rust
|
||||||
//! Hello, world!
|
//! Hello, world!
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user