summaryrefslogtreecommitdiff
path: root/demo/source/setcolbdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'demo/source/setcolbdr.c')
-rw-r--r--demo/source/setcolbdr.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/demo/source/setcolbdr.c b/demo/source/setcolbdr.c
new file mode 100644
index 0000000..1173d55
--- /dev/null
+++ b/demo/source/setcolbdr.c
@@ -0,0 +1,18 @@
+#include <agbx-demo.h>
+
+#include <ax/gfx.h>
+
+void axd_setcolbdr(ax_i02 const _vaddr,ax_i01 const _col) {
+ for (ax_i01 px = 0x0u;px != 0xF0u;++px) {
+ ax_plot1(_vaddr,px,_col);
+ }
+ for (ax_i01 px = 0xEFu;px != ax_scrnh3 * ax_scrnw3 + 0xEFu;px += ax_scrnw3) {
+ ax_plot1(_vaddr,px,_col);
+ }
+ for (ax_i01 px = 0x9Fu * ax_scrnw3;px != 0x9Fu * ax_scrnw3 + 0xF0u;++px) {
+ ax_plot1(_vaddr,px,_col);
+ }
+ for (ax_i01 px = 0x0u;px != ax_scrnh3 * ax_scrnw3;px += ax_scrnw3) {
+ ax_plot1(_vaddr,px,_col);
+ }
+}