mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-06 12:54:29 +01:00
Comment-only change (the built image is byte-identical: felucca.bin 583936 B, felucca.fwsc 684736 B, same SHA-256).
- 37 files written new for JIANT FM after the fork (no Felucca text in them: checked against ac6bfcbd by literal
code lines, runs of consecutive lines, same-named functions and moves in their creating commit) carried Leo
Kuroshita's copyright line copied from a template: it is now Juan Jiant's (SPDX GPL-3.0-only kept). Among them
sing.c, eng_animal.c, eng_input.c, eng_string.c, pfx.c, seq_live.c, ui_engvis.c, ui_lens.c, ui_lz*.c, ui_being.c,
ui_organic.c, ui_tech.c, ui_dx.c, ui_live.c, tools/lyrics/*.txt, gen_drum_maps.py, gen_px_font.py and 14 tests.
- 140 files that hold Felucca's code (Felucca 1.1.5.1 files changed since, imports of Felucca 1.5.x, the SLOOP-based
song_main/song_play, and new files that carry copied Felucca helpers: drumx_voice.c dv_exp2/dv_kb, gen_lyrics.py's
Huffman, test harness helpers) keep Leo's notice and add "Portions Copyright (C) 2026 Juan Ignacio Antonucci
(Juan Jiant)". Files unchanged since the fork are left as they were.
- LICENSING.md and README.md name both copyright holders.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
37 lines
1.3 KiB
ArmAsm
37 lines
1.3 KiB
ArmAsm
/* SPDX-License-Identifier: GPL-3.0-only
|
|
* Copyright (C) 2026 Leo Kuroshita (@kurogedelic), Hügelton Instruments
|
|
* Portions Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) */
|
|
/* 128 fatal-vector stubs, 6 bytes each: VEC[n] = fm1_fatal_stubs + 6*n.
|
|
* The call leaves rets = stub + 6, so common code recovers n. */
|
|
.section .text.fm1vec,"ax",@progbits
|
|
.globl fm1_fatal_stubs
|
|
.balign 2
|
|
fm1_fatal_stubs:
|
|
.rept 128
|
|
[--sp] = {rets}
|
|
call fm1_fatal_common
|
|
.endr
|
|
|
|
.section .text.fm1vec_common,"ax",@progbits
|
|
.globl fm1_fatal_common
|
|
fm1_fatal_common:
|
|
trigger
|
|
[--sp] = {sp, ssp, usp, icfg, psr, rets, retx, rete, reti}
|
|
[--sp] = {r15-r0}
|
|
r0 = sp /* frame: r0..r15, reti, rete, retx, rets(stub+6), psr, icfg, usp, ssp, sp, rets(orig) */
|
|
call fm1_fault_c
|
|
/* (JIANT 0.6.71) back only after a fault of the second core (held now: fm1_irq.h): core 0 resumes, as an ISR
|
|
* wrapper returns. reti, the interrupted rets and psr go to the frame's last three words (f[23..25]), where the
|
|
* pop of {psr, rets, reti} finds them (Melodee's layout); sp ends where the exception found it */
|
|
r0 = [sp+64] /* f[16] reti */
|
|
r1 = [sp+100] /* f[25] the interrupted rets */
|
|
r2 = [sp+80] /* f[20] psr */
|
|
[sp+92] = r0
|
|
[sp+96] = r1
|
|
[sp+100] = r2
|
|
{r15-r0} = [sp++]
|
|
sp += 28 /* past f[16..22] */
|
|
{psr, rets, reti} = [sp++]
|
|
csync
|
|
rti
|