summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSophie Forrest <git@sophieforrest.com>2024-10-04 23:25:44 +1300
committerSophie Forrest <git@sophieforrest.com>2024-10-04 23:25:44 +1300
commit1f82a90833990db8efe6111f89a9126a2fde74c5 (patch)
treeba7783a34a51fa710e332b00f824cef93abc2436 /src
parentd58a4d4ec245ea336b0e8b93e5ae3907b39395b4 (diff)
feat: refactor tooling
Diffstat (limited to '')
-rw-r--r--src/cpu.rs2
-rw-r--r--src/instruction.rs2
-rw-r--r--src/main.rs9
-rw-r--r--src/memory.rs2
4 files changed, 12 insertions, 3 deletions
diff --git a/src/cpu.rs b/src/cpu.rs
index b009160..8437d10 100644
--- a/src/cpu.rs
+++ b/src/cpu.rs
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
 //! Implementation of the MOS 6502 CPU.
 
 use bitflags::bitflags;
diff --git a/src/instruction.rs b/src/instruction.rs
index 2744048..d3aa725 100644
--- a/src/instruction.rs
+++ b/src/instruction.rs
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
 //! Implementation of instructions for MOS 6502.
 
 /// List of all instructions for MOS 6502.
diff --git a/src/main.rs b/src/main.rs
index 003d198..4d64f3c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,8 +1,11 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
 //! 6502 Emulator written in Rust. Based off of information from Dave's playlist
-//! <https://www.youtube.com/playlist?list=PLLwK93hM93Z13TRzPx9JqTIn33feefl37> using the now defunct
-//! obelisk 6502 documentation.
+//! <https://www.youtube.com/playlist?list=PLLwK93hM93Z13TRzPx9JqTIn33feefl37>
+//! using the now defunct obelisk 6502 documentation.
 //!
-//! Many comments are sourced from the Obelisk 6502 documentation <https://web.archive.org/web/20210501031403/http://www.obelisk.me.uk/index.html>
+//! Many comments are sourced from the Obelisk 6502 documentation
+//! <https://web.archive.org/web/20210501031403/http://www.obelisk.me.uk/index.html>
 
 mod cpu;
 mod instruction;
diff --git a/src/memory.rs b/src/memory.rs
index d251231..3f1aadf 100644
--- a/src/memory.rs
+++ b/src/memory.rs
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
 //! Implementation of memory for the MOS 6502.
 
 /// Maximum amount of memory that exists within the emulator.