From 94587058b931dd567b62e1825df5ba28f82683ad Mon Sep 17 00:00:00 2001 From: Cuyler36 <24523422+Cuyler36@users.noreply.github.com> Date: Sun, 9 Jun 2024 20:36:14 -0400 Subject: [PATCH] Implement & link jaudio_NES/astest.c --- config/disasm_overrides.yml | 1 + config/dol_slices.yml | 2 ++ include/jaudio_NES/astest.h | 9 +++++++++ src/static/jaudio_NES/internal/astest.c | 5 +++++ 4 files changed, 17 insertions(+) create mode 100644 include/jaudio_NES/astest.h create mode 100644 src/static/jaudio_NES/internal/astest.c diff --git a/config/disasm_overrides.yml b/config/disasm_overrides.yml index 5b331fde..525ded38 100644 --- a/config/disasm_overrides.yml +++ b/config/disasm_overrides.yml @@ -8,6 +8,7 @@ symbol_aligns: 0x80019380: 32 0x80019760: 32 0x8001a0c0: 32 + 0x80026400: 32 0x80031d80: 32 0x80207458: 8 # align RunQueue to 0x001251d8 0x800b9140: 32 # align gam_win_moji1_tex to 32 bytes diff --git a/config/dol_slices.yml b/config/dol_slices.yml index bbf18cb8..e3d89f35 100644 --- a/config/dol_slices.yml +++ b/config/dol_slices.yml @@ -103,6 +103,8 @@ jaudio_NES/internal/playercall.c: .bss: [0x801864d0,0x80186590] jaudio_NES/internal/os.c: .text: [0x80026120, 0x80026300] +jaudio_NES/internal/astest.c: + .text: [0x80026300, 0x80026400] jaudio_NES/internal/random.c: .text: [0x80031ce0, 0x80031d80] .sdata: [0x80217c38, 0x80217c40] diff --git a/include/jaudio_NES/astest.h b/include/jaudio_NES/astest.h new file mode 100644 index 00000000..14b9a212 --- /dev/null +++ b/include/jaudio_NES/astest.h @@ -0,0 +1,9 @@ +#ifndef ASTEST_H +#define ASTEST_H + +#include "types.h" +#include "jaudio_NES/audiostruct.h" + +extern void CopyStc(commonch* dstStc, commonch* srcStc); + +#endif diff --git a/src/static/jaudio_NES/internal/astest.c b/src/static/jaudio_NES/internal/astest.c new file mode 100644 index 00000000..24e78783 --- /dev/null +++ b/src/static/jaudio_NES/internal/astest.c @@ -0,0 +1,5 @@ +#include "jaudio_NES/astest.h" + +extern void CopyStc(commonch* dstStc, commonch* srcStc) { + *dstStc = *srcStc; +}