Begin with basic init

This commit is contained in:
hkz 2025-07-15 21:14:14 +02:00
commit 85ca4f19a2
5 changed files with 36 additions and 7 deletions

View file

@ -9,9 +9,22 @@
#include "monitor_subroutines.h"
__task int main () {
// Low level initialization
void __low_level_init(void) {
POKE(P3_PWRDUP, 0); // Dirty the value checked by the reset vector
PEEK(IO_ROMSEL); // Make sure the ROM is selected
PEEK(IO_DISPLAY_BW); // Disable colors
PEEK(IO_DISPLAY_PAGE1); // Select the first display page
// Clear display memory
memset((void*)DISPLAY_PAGE_1, 0, DISPLAY_PAGE_SIZE);
memset((void*)DISPLAY_PAGE_2, 0, DISPLAY_PAGE_SIZE);
}
__task int main(void) {
while(1){