diff options
-rw-r--r-- | CHANGELOG.txt | 5 | ||||
-rw-r--r-- | agbx/include/agbx/bs.h | 2 | ||||
-rw-r--r-- | agbx/source/bs/done.c | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 94de41f..ba7ef29 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,8 @@ +# 1.1 + +* Fix version number not being updated; +* Update error screen; + # 1.0 * Add changelog; diff --git a/agbx/include/agbx/bs.h b/agbx/include/agbx/bs.h index ab2afd1..8d93698 100644 --- a/agbx/include/agbx/bs.h +++ b/agbx/include/agbx/bs.h @@ -26,7 +26,7 @@ typedef enum { agbx_err_max = 0xFFu, } agbx_err; -constexpr agbx_i40 agbx_ver = 0x0u; +constexpr agbx_i40 agbx_ver = 0x1u; [[noreturn]] void agbx_done(agbx_err err); diff --git a/agbx/source/bs/done.c b/agbx/source/bs/done.c index 81fd7c5..2616d80 100644 --- a/agbx/source/bs/done.c +++ b/agbx/source/bs/done.c @@ -18,7 +18,7 @@ void agbx_done(agbx_err const _err) { /* Display the barcode-like error message: */ agbx_set10(0x4000000u,0x403u); agbx_i10 err[0x8u]; - for (agbx_i8 pos = 0x0u;pos != 0x8u;++pos) {err[pos] = (agbx_i8)_err >> pos & 0x1u ? 0xFFFFu : 0x0u;} + for (agbx_i8 pos = 0x0u;pos != 0x8u;++pos) {err[pos] = (agbx_i8)_err >> pos & 0x1u ? 0x19u : 0x0u;} for (agbx_i10 pos = 0x0u;pos != 0x9600u;pos += 0xF0u) { agbx_setpx2(pos, err[0x0u]); agbx_setpx2(pos + 0x1u,err[0x1u]); @@ -28,6 +28,8 @@ void agbx_done(agbx_err const _err) { agbx_setpx2(pos + 0x5u,err[0x5u]); agbx_setpx2(pos + 0x6u,err[0x6u]); agbx_setpx2(pos + 0x7u,err[0x7u]); + agbx_setpx2(pos + 0x8u,0x0u); + agbx_setpx2(pos + 0x9u,0x19u); } __asm__ ( "swi 0x2\n" |