diff options
Diffstat (limited to 'demo/source/initgfx.c')
-rw-r--r-- | demo/source/initgfx.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/demo/source/initgfx.c b/demo/source/initgfx.c new file mode 100644 index 0000000..474d5cd --- /dev/null +++ b/demo/source/initgfx.c @@ -0,0 +1,17 @@ +#include <agbx-demo.h> + +#include <agbx/gfx.h> + +void agbxd_initgfx(void) { + agbx_set10(0x500'0000u,0b0u); + agbx_set10(0x500'0002u,0b111111111111111u); + agbx_set10(0x500'0004u,0b11111u); + agbx_set10(0x500'0006u,0b1111111111u); + agbx_set10(0x500'0008u,0b1111100000u); + agbx_set10(0x500'000Au,0b111111111100000u); + agbx_set10(0x500'000Cu,0b111110000000000u); + agbx_set10(0x500'000Eu,0b111110000011111u); + agbx_set10(0x400'0000u,0x404u); + agbx_clrscrn4(0x600'0000u,0x0u); + agbx_clrscrn4(0x600'A000u,0x0u); +} |