summaryrefslogtreecommitdiff
path: root/linker_scripts/code_script.txt
diff options
context:
space:
mode:
authorRozelette <Rozelette@users.noreply.github.com>2021-03-27 12:44:39 -0500
committerGitHub <noreply@github.com>2021-03-27 12:44:39 -0500
commit6536afc6d3ee65c8dc86fa5009fc081242be18fe (patch)
tree2406c463c2deec5b26e7bba7f480a4a58f11a229 /linker_scripts/code_script.txt
parent807db1ca549de3d38c42e24eb53f0803023ffcea (diff)
Restructure how buffers are set up (#77)
Diffstat (limited to 'linker_scripts/code_script.txt')
-rw-r--r--linker_scripts/code_script.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/linker_scripts/code_script.txt b/linker_scripts/code_script.txt
index 73192bc79..190bd61c4 100644
--- a/linker_scripts/code_script.txt
+++ b/linker_scripts/code_script.txt
@@ -625,6 +625,23 @@ SECTIONS
. += 0x24F00;
code_bss_end = .;
+ buffers ALIGN(0x10):
+ {
+ build/src/buffers/gfxbuffers.o(.bss)
+ build/src/buffers/heaps.o(.bss)
+ }
+
+ /* Framebuffers */
+ gFramebuffer1 = 0x80000500;
+ gFramebuffer0 = 0x80800000 - 320*240*2; /* SCREEN_WIDTH*SCREEN_HEIGHT*sizeof(s16) */
+ gFramebufferHighRes1 = 0x80000500;
+ gFramebufferHighRes0 = 0x80780000;
+
+ /* Unkown buffers */
+ D_80025D00 = 0x80025D00; /* Used in z_vr_box.c */
+ D_80780000 = 0x80780000;
+ D_80784600 = 0x80784600;
+
. = 0x80800000;
SegmentStart = .;
_ovl_titleSegmentStart = SegmentStart;