summaryrefslogtreecommitdiff
path: root/agbx/include
diff options
context:
space:
mode:
Diffstat (limited to 'agbx/include')
-rw-r--r--agbx/include/agbx/bs.h8
-rw-r--r--agbx/include/agbx/gfx.h12
2 files changed, 11 insertions, 9 deletions
diff --git a/agbx/include/agbx/bs.h b/agbx/include/agbx/bs.h
index 8d93698..617e328 100644
--- a/agbx/include/agbx/bs.h
+++ b/agbx/include/agbx/bs.h
@@ -26,13 +26,13 @@ typedef enum {
agbx_err_max = 0xFFu,
} agbx_err;
-constexpr agbx_i40 agbx_ver = 0x1u;
+constexpr agbx_i40 agbx_ver = 0x2u;
[[noreturn]] void agbx_done(agbx_err err);
-agbx_i10 agbx_get10(agbx_i20 addr);
-agbx_i20 agbx_get20(agbx_i20 addr);
-agbx_i8 agbx_get8( agbx_i20 addr);
+[[nodiscard]] agbx_i10 agbx_get10(agbx_i20 addr);
+[[nodiscard]] agbx_i20 agbx_get20(agbx_i20 addr);
+[[nodiscard]] agbx_i8 agbx_get8( agbx_i20 addr);
void agbx_set10(agbx_i20 addr,agbx_i10 val);
void agbx_set20(agbx_i20 addr,agbx_i20 val);
diff --git a/agbx/include/agbx/gfx.h b/agbx/include/agbx/gfx.h
index 31c3778..579e20a 100644
--- a/agbx/include/agbx/gfx.h
+++ b/agbx/include/agbx/gfx.h
@@ -9,11 +9,13 @@
#include <agbx/bs.h>
-void agbx_setpx1(agbx_i10 px,agbx_i8 col);
-void agbx_setpx2(agbx_i10 px,agbx_i10 col);
+agbx_i20 agbx_flip(void);
-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);
+void agbx_setpx1(agbx_i20 vaddr,agbx_i10 px,agbx_i8 col);
+void agbx_setpx2(agbx_i20 vaddr,agbx_i10 px,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);
#endif