Add license/copyright notices to top of each source file (where applicable)

This commit is contained in:
2025-12-01 22:06:13 +01:00
parent 6b49b34cc5
commit e2d521bbe7
7 changed files with 42 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
// Copyright (c) 2025 taitep
// SPDX-License-Identifier: MIT
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
use crate::{
consts::{Addr, RegId, RegValue},
decode::Instruction,

View File

@@ -1,3 +1,9 @@
// Copyright (c) 2025 taitep
// SPDX-License-Identifier: MIT
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
use crate::consts::{DWord, RegId, Word};
const MASK_REGISTER: Word = 0x1f;

View File

@@ -1,3 +1,9 @@
// Copyright (c) 2025 taitep
// SPDX-License-Identifier: MIT
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
use once_cell::sync::Lazy;
mod gen_tools;

View File

@@ -1,3 +1,9 @@
// Copyright (c) 2025 taitep
// SPDX-License-Identifier: MIT
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
use std::hint::unreachable_unchecked;
use crate::instructions::{OpcodeHandler, Splitter};

View File

@@ -1,3 +1,9 @@
// Copyright (c) 2025 taitep
// SPDX-License-Identifier: MIT
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
use crate::{
consts::{Addr, DWord},
core::{Core, InstructionResult},

View File

@@ -1,3 +1,9 @@
// Copyright (c) 2025 taitep
// SPDX-License-Identifier: MIT
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
use std::{
error::Error,
fs::File,

View File

@@ -1,3 +1,9 @@
// Copyright (c) 2025 taitep
// SPDX-License-Identifier: MIT
//
// This file is part of TRVE (https://gitea.taitep.se/taitep/trve)
// See LICENSE file in the project root for full license text.
use std::sync::{
Arc,
atomic::{AtomicU8, AtomicU16, AtomicU32, AtomicU64, Ordering::Relaxed},