summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2023-07-29 12:52:32 -0400
committerGitHub <noreply@github.com>2023-07-29 12:52:32 -0400
commit632ff4b2abec60e91be7b71e0cf40043bed75f32 (patch)
treec8e53f50d0c681afc2a6542a11cbf442174751f3 /src
parent40cc48fb7a956f94cfd4c0e90a60ee15eefc4f8e (diff)
Build a compressed ROM (#16)
* git subrepo clone (merge) --branch=5da3132606e4fd427a8d72b8428e4f921cd6e56f git@github.com:z64tools/z64compress.git tools/z64compress subrepo: subdir: "tools/z64compress" merged: "5da3132" upstream: origin: "git@github.com:z64tools/z64compress.git" branch: "5da3132606e4fd427a8d72b8428e4f921cd6e56f" commit: "5da3132" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * z64compress_wrapper.py * fixes * dmadata.c * readme * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "01ac556" upstream: origin: "git@github.com:ethteck/splat.git" branch: "master" commit: "01ac556" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * segment_end_before_align: True * Add compressed step to jenkinsfile * TODO * format * remove from boot_variables.h * simplify * Change makefile to match MM
Diffstat (limited to 'src')
-rw-r--r--src/dmadata/dmadata.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/dmadata/dmadata.c b/src/dmadata/dmadata.c
new file mode 100644
index 0000000..45d5030
--- /dev/null
+++ b/src/dmadata/dmadata.c
@@ -0,0 +1,21 @@
+#include "segment_symbols.h"
+#include "z_std_dma.h"
+
+// Linker symbol declarations (used in the table below)
+#define DEFINE_DMA_ENTRY(name, _nameString) DECLARE_ROM_SEGMENT(name);
+
+#include "tables/dmadata_table.h"
+
+#undef DEFINE_DMA_ENTRY
+
+// dmadata Table definition
+#define DEFINE_DMA_ENTRY(name, _1) { SEGMENT_ROM_START(name), SEGMENT_ROM_END(name), SEGMENT_ROM_START(name), 0 },
+
+DmaEntry gDmaDataTable[] = {
+#include "tables/dmadata_table.h"
+ { 0 },
+};
+
+#undef DEFINE_DMA_ENTRY
+
+u8 sDmaDataPadding[0xF0] = { 0 };