summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
Diffstat (limited to 'demo')
-rw-r--r--demo/hdr.s2
-rw-r--r--demo/script.ld4
-rw-r--r--demo/source/start.c7
3 files changed, 7 insertions, 6 deletions
diff --git a/demo/hdr.s b/demo/hdr.s
index ecf4bb3..0abcb49 100644
--- a/demo/hdr.s
+++ b/demo/hdr.s
@@ -41,7 +41,7 @@ _start: @ We define this label to stop the linker from complaining
@ "J": Japan
@ "P": Elsewhere
@ "S": Spain
-.ascii "CXXE"
+.ascii "CAXE"
@ Maker code (2)
@ Two character ASCII string. Identifies the (commerical) developer.
diff --git a/demo/script.ld b/demo/script.ld
index 6eb58e4..8f61176 100644
--- a/demo/script.ld
+++ b/demo/script.ld
@@ -13,8 +13,8 @@ MEMORY {
}
SECTIONS {
- .bss : {*(.bss*)} > iwram
- .data : {*(.data*)} > iwram
+ .bss : {*(.bss*)} > ewram
+ .data : {*(.data*)} > ewram
.text : {*(.text*)} > rom
.rodata : {*(.rodata*)} > rom
}
diff --git a/demo/source/start.c b/demo/source/start.c
index eb4bb9d..e6c9a45 100644
--- a/demo/source/start.c
+++ b/demo/source/start.c
@@ -1,7 +1,8 @@
#include <ax-demo.h>
-#include <ax/key.h>
+#include <ax/algo.h>
#include <ax/gfx.h>
+#include <ax/key.h>
#include <float.h>
#include <iso646.h>
@@ -42,7 +43,7 @@
0x04u, 0x04u,0x04u,0x04u,0x04u,0x04u,0x04u,0x04u, 0x04u, 0x04u,0x04u,0x04u,0x04u,0x04u,0x04u,0x04u, 0x04u, 0x04u,0x04u,0x04u,0x04u,0x04u,0x04u,0x04u, 0x04u, 0x04u,0x04u,0x04u,0x04u,0x04u,0x04u,0x04u, 0x04u,
};*/
-static ax_i8 const axd_logo[] = {
+constexpr ax_i8 axd_logo[] = {
0x0Eu,0x0Eu,0x0Eu,0x0Eu,0x0Eu,0x0Eu,0x0Eu,0x0Eu,0x0Eu,0x0Eu,0x0Eu,0x0Eu,0x0Eu,0x03u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