summaryrefslogtreecommitdiff
path: root/agbx/include
diff options
context:
space:
mode:
Diffstat (limited to 'agbx/include')
-rw-r--r--agbx/include/agbx/algo.h14
-rw-r--r--agbx/include/agbx/bs.h8
-rw-r--r--agbx/include/agbx/gfx.h12
3 files changed, 28 insertions, 6 deletions
diff --git a/agbx/include/agbx/algo.h b/agbx/include/agbx/algo.h
new file mode 100644
index 0000000..c117e97
--- /dev/null
+++ b/agbx/include/agbx/algo.h
@@ -0,0 +1,14 @@
+/*
+ Copyright 2022 Gabriel Jensen.
+ This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
+ If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
+*/
+
+#if !defined(__agbx_hdr_algo)
+#define __agbx_hdr_algo
+
+#include <agbx/bs.h>
+
+void agbx_cp(void const * src,agbx_i20 num,void * dest);
+
+#endif
diff --git a/agbx/include/agbx/bs.h b/agbx/include/agbx/bs.h
index 617e328..dde470b 100644
--- a/agbx/include/agbx/bs.h
+++ b/agbx/include/agbx/bs.h
@@ -18,15 +18,17 @@ typedef unsigned long long agbx_i40;
typedef unsigned char agbx_i8;
typedef enum {
+ agbx_err_ok = 0x0u,
+ agbx_err_badaddr,
+ agbx_err_badalgn,
+ agbx_err_badcol,
agbx_err_badmd,
- agbx_err_misc,
- agbx_err_ok,
agbx_err_pos2big,
agbx_err_px2big,
agbx_err_max = 0xFFu,
} agbx_err;
-constexpr agbx_i40 agbx_ver = 0x2u;
+constexpr agbx_i40 agbx_ver = 0x3u;
[[noreturn]] void agbx_done(agbx_err err);
diff --git a/agbx/include/agbx/gfx.h b/agbx/include/agbx/gfx.h
index 579e20a..2da8974 100644
--- a/agbx/include/agbx/gfx.h
+++ b/agbx/include/agbx/gfx.h
@@ -9,13 +9,19 @@
#include <agbx/bs.h>
-agbx_i20 agbx_flip(void);
+agbx_i20 agbx_flip( void);
+agbx_i20 agbx_getvbnk(void);
+void agbx_vsync( void);
void agbx_setpx1(agbx_i20 vaddr,agbx_i10 px,agbx_i8 col);
void agbx_setpx2(agbx_i20 vaddr,agbx_i10 px,agbx_i10 col);
+void agbx_clrscrn3(agbx_i10 col);
+void agbx_clrscrn4(agbx_i20 vaddr,agbx_i8 col);
+void agbx_clrscrn5(agbx_i20 vaddr,agbx_i10 col);
+
agbx_i10 agbx_plot3(agbx_i8 x,agbx_i8 y,agbx_i10 col);
-agbx_i10 agbx_plot4(agbx_i8 x,agbx_i8 y,agbx_i8 col);
-agbx_i10 agbx_plot5(agbx_i8 x,agbx_i8 y,agbx_i10 col);
+agbx_i10 agbx_plot4(agbx_i20 vaddr,agbx_i8 x,agbx_i8 y,agbx_i8 col);
+agbx_i10 agbx_plot5(agbx_i20 vaddr,agbx_i8 x,agbx_i8 y,agbx_i10 col);
#endif