Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP single file sound engine #284

Draft
wants to merge 1 commit into
base: 4.2.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions SoundEngine/UnitTests/run_tests.bat
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,14 @@ if "%rnd%"=="1" (
type test_defs.inc

:: Compile everything.
..\..\Tools\ca65 test_ca65.s -g -o test_ca65.o
echo "========= CA65"
..\..\Tools\ca65 test_ca65.s -g -o test_ca65.o -l test_ca65.lst --list-bytes 0
..\..\Tools\ld65 -C test_ca65.cfg -o test_ca65.nes test_ca65.o --mapfile test_ca65.map --dbgfile test_ca65.dbg
REM ..\..\Tools\asm6 test_asm6.asm test_asm6.nes
..\..\Tools\asm6_fixed test_asm6.asm test_asm6.nes
..\..\Tools\NESASM3 test_nesasm.asm
echo "========= ASM6F"
..\..\Tools\asm6_fixed -L test_asm6.asm test_asm6.nes
echo "========= NESASM"
..\..\Tools\NESASM3 -l 2 test_nesasm.asm

:: Binary comparison of all 3 ROMs.
fc /b test_ca65.nes test_asm6.nes > nul
Expand Down
3 changes: 2 additions & 1 deletion SoundEngine/UnitTests/test_asm6.asm
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ famistudio_dpcm_bank_callback:
; CODE
.org $8100
FAMISTUDIO_CFG_EXTERNAL = 1
FAMISTUDIO_ASSEMBLER_ASM6F = 1
FAMISTUDIO_ASM6_ZP_ENUM = $0000
FAMISTUDIO_ASM6_BSS_ENUM = $0300
FAMISTUDIO_ASM6_CODE_BASE = $8100
.include "test_defs.inc"
.include "..\famistudio_asm6.asm"
.include "../famistudio.s"

; VECTORS
.org $fffA
Expand Down
3 changes: 2 additions & 1 deletion SoundEngine/UnitTests/test_ca65.s
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ famistudio_dpcm_bank_callback:
.segment "CODE2"

FAMISTUDIO_CFG_EXTERNAL = 1
FAMISTUDIO_ASSEMBLER_CA65 = 1
.define FAMISTUDIO_CA65_ZP_SEGMENT ZEROPAGE
.define FAMISTUDIO_CA65_RAM_SEGMENT RAM
.define FAMISTUDIO_CA65_CODE_SEGMENT CODE2
.include "test_defs.inc"
.include "..\famistudio_ca65.s"
.include "../famistudio.s"

.segment "CHARS"
.res 8192
Expand Down
7 changes: 6 additions & 1 deletion SoundEngine/UnitTests/test_nesasm.asm
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@

.list

; HEADER
.inesprg 2 ; 1x 16KB PRG code
.ineschr 1 ; 1x 8KB CHR data
.inesmap 0 ; mapper 0 = NROM, no bank swapping
.inesmir 1 ; background mirroring


; CODE
.bank 0
.org $8000
Expand All @@ -15,13 +19,14 @@ famistudio_dpcm_bank_callback:
.org $8100

FAMISTUDIO_CFG_EXTERNAL = 1
FAMISTUDIO_ASSEMBLER_NESASM = 1
FAMISTUDIO_NESASM_ZP_RSSET = $0000
FAMISTUDIO_NESASM_BSS_RSSET = $0300
FAMISTUDIO_NESASM_CODE_BANK = 0
FAMISTUDIO_NESASM_CODE_ORG = $8100

.include "test_defs.inc"
.include "..\famistudio_nesasm.asm"
.include "../famistudio.s"
.bank 4

.org $0000
Expand Down
Loading