From 2a4cd9a49cca4354013a5533989463533bbf99c0 Mon Sep 17 00:00:00 2001 From: Raphael Amorim Date: Fri, 5 Jun 2026 19:26:38 +0200 Subject: [PATCH] add license header on files --- bus.jam | 3 +++ cdrom.jam | 3 +++ cpu.jam | 3 +++ cue.jam | 3 +++ disc.jam | 3 +++ dma.jam | 3 +++ gpu.jam | 3 +++ gte.jam | 3 +++ irq.jam | 3 +++ main.jam | 3 +++ mcd.jam | 3 +++ mdec.jam | 3 +++ pad.jam | 3 +++ sdl.jam | 3 +++ sio1.jam | 3 +++ spu.jam | 3 +++ tests.jam | 3 +++ timer.jam | 3 +++ xa.jam | 3 +++ 19 files changed, 57 insertions(+) diff --git a/bus.jam b/bus.jam index 161c01e..2a6cddc 100644 --- a/bus.jam +++ b/bus.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + // PSX memory bus. // // Routes word / halfword / byte reads and writes through the masked diff --git a/cdrom.jam b/cdrom.jam index e747f88..4ebc3b3 100644 --- a/cdrom.jam +++ b/cdrom.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + // register map at 0x1F801800..0x1F801803 // // every register is bank-selected: writes to address 0x800 set bits 0-1 of the bank index, diff --git a/cpu.jam b/cpu.jam index cee2e21..b6a0127 100644 --- a/cpu.jam +++ b/cpu.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + // MIPS R3000A core for the PSX. // // Covers the primary integer ISA: shifts (SLL/SRL/SRA/SLLV/SRLV/SRAV), diff --git a/cue.jam b/cue.jam index 6dd8d74..52de246 100644 --- a/cue.jam +++ b/cue.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + // .cue text file describes how one or more .bin files map to CD-ROM // tracks. // diff --git a/disc.jam b/disc.jam index d23b4e7..68163ef 100644 --- a/disc.jam +++ b/disc.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + // 1. Raw .bin (Mode2/2352): single-file image, one data track. The // historical layout for our test discs and most plain dumps. // 2. .cue + .bin(s): multi-track support via the CUE parser in diff --git a/dma.jam b/dma.jam index 41c0b63..3fe5617 100644 --- a/dma.jam +++ b/dma.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + const { Gpu } = import("gpu"); const { irqRaise, IC_DMA } = import("irq"); const { Vec } = import("std/collections"); diff --git a/gpu.jam b/gpu.jam index 0dcc73a..6750b75 100644 --- a/gpu.jam +++ b/gpu.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + // [0..15] command FIFO buffer // [16] buf_index // [17] cmd_args_remaining diff --git a/gte.jam b/gte.jam index 13ca91b..d60b2b7 100644 --- a/gte.jam +++ b/gte.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + // Data register layout (32 × u32): // 0 V0 (xy packed, low half of vertex 0) // 1 V0Z (z, low 16 bits) diff --git a/irq.jam b/irq.jam index 124e1aa..ac282a1 100644 --- a/irq.jam +++ b/irq.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + // Two registers live at 0x1F801070..0x1F801077: // 0x00 I_STAT status - set by devices raising IRQs, cleared by // writing 0 to the matching bit diff --git a/main.jam b/main.jam index d1b5ba4..ee0757b 100644 --- a/main.jam +++ b/main.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + const { Bus, createBus, busRead32, busRead16, busRead8, busWrite32, busWrite16, busWrite8 diff --git a/mcd.jam b/mcd.jam index 25be9c2..494bc5b 100644 --- a/mcd.jam +++ b/mcd.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + // TX_HIZ -> 0xFF on first read (line high-Z) // TX_FLG -> flag byte (0x08 = "first access since power-on") // TX_ID1 / TX_ID2 -> 0x5A / 0x5D identification bytes diff --git a/mdec.jam b/mdec.jam index a346901..35f7793 100644 --- a/mdec.jam +++ b/mdec.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + // MDEC is Motion Decoder. // basically: // 1. CdlReadS streams compressed sectors into RAM. diff --git a/pad.jam b/pad.jam index be504a0..d6d7104 100644 --- a/pad.jam +++ b/pad.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + const { irqRaise, IC_JOY } = import("irq"); const { Mcd } = import("mcd"); const { Vec } = import("std/collections"); diff --git a/sdl.jam b/sdl.jam index a181f64..f82b21a 100644 --- a/sdl.jam +++ b/sdl.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + // SDL2 frontend. // // Wraps the few SDL2 functions we need to open a window, blit a diff --git a/sio1.jam b/sio1.jam index 3fd6a0a..f24a396 100644 --- a/sio1.jam +++ b/sio1.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + const { irqRaise, IC_SIO } = import("irq"); const CTRL_TXEN: u32 = 0x0001; diff --git a/spu.jam b/spu.jam index aceb8b7..cadfe85 100644 --- a/spu.jam +++ b/spu.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + const { irqRaise, IC_SPU } = import("irq"); const { Vec } = import("std/collections"); diff --git a/tests.jam b/tests.jam index 8a6b193..6f2c724 100644 --- a/tests.jam +++ b/tests.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + const { assert } = import("test"); const { diff --git a/timer.jam b/timer.jam index 6e9a55e..db8e810 100644 --- a/timer.jam +++ b/timer.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + const { irqRaise, IC_TIMER0, IC_TIMER1, IC_TIMER2 } = import("irq"); pub const TimerChannel = struct { counter: f32, diff --git a/xa.jam b/xa.jam index 19f6cb1..576bb21 100644 --- a/xa.jam +++ b/xa.jam @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2026 Raphael Amorim + // note: // XA sectors are Mode 2 / Form 2 CD-ROM sectors carrying compressed // 4-bit ADPCM audio. The format is: -- 2.51.2