summaryrefslogtreecommitdiff
path: root/2_scroll_planes/_sram.ld
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-06 23:23:59 +0300
committerOxore <oxore@protonmail.com>2023-05-06 23:23:59 +0300
commitd39090b6a94b7c1700d190a1bb63e85ff1c1f4ad (patch)
tree3c1702dd04aad5ba79b243422c75a21a26a4bc16 /2_scroll_planes/_sram.ld
parentebcd974b8e18a2033c94cb0050dab73964d6c19b (diff)
Add 2_scroll_planes demo
Diffstat (limited to '2_scroll_planes/_sram.ld')
-rw-r--r--2_scroll_planes/_sram.ld26
1 files changed, 26 insertions, 0 deletions
diff --git a/2_scroll_planes/_sram.ld b/2_scroll_planes/_sram.ld
new file mode 100644
index 0000000..e9fcc24
--- /dev/null
+++ b/2_scroll_planes/_sram.ld
@@ -0,0 +1,26 @@
+SECTIONS {
+ __stacktop = ORIGIN(SRAM) + 0xe000;
+ __data_load = LOADADDR(.data);
+ . = ORIGIN(SRAM);
+
+ .data ALIGN(4) : {
+ __data_start = .;
+ *(.data)
+ *(.data*)
+ . = ALIGN(4);
+ __data_end = .;
+ } >SRAM AT >ROM
+
+ .bss ALIGN(4) (NOLOAD) : {
+ __bss_start = .;
+ *(.bss)
+ *(.bss*)
+ . = ALIGN(4);
+ __bss_end = .;
+ *(.noinit)
+ *(.noinit*)
+ } >SRAM
+
+ . = ALIGN(4);
+ __heap_start = .;
+}