gui2: basic start works!

This commit is contained in:
Martin Preuss
2026-03-07 15:29:28 +01:00
parent 7bd83b32b4
commit 92efebccf1
4 changed files with 73 additions and 52 deletions

View File

@@ -199,8 +199,8 @@ onSystemStart:
; Called on every message received
onMessageReceived:
; ldi zl, LOW(appC03*2)
; ldi zh, HIGH(appC03*2)
; lds yl, guiApp
; lds yh, guiApp+1
; bigcall GuiApp_MsgReceived
clc
ret
@@ -214,9 +214,9 @@ onMessageReceived:
; Called every 100ms. Add your routine calls here. No arguments, no results.
onEvery100ms:
; ldi zl, LOW(appC03*2)
; ldi zh, HIGH(appC03*2)
; bigcall GuiApp_Every100ms
lds yl, guiApp
lds yh, guiApp+1
bigcall GuiApp_Every100ms
ret
onEveryMinute:
@@ -243,10 +243,19 @@ onEveryLoop:
test:
; ldi zl, LOW(appC03*2)
; ldi zh, HIGH(appC03*2)
; bigcall GuiApp_Init
clr r16
sts guiApp, r16
sts guiApp+1, r16
ldi r16, 0
ldi r17, 0
bigcall GuiApp_new
brcs test_ok
bigjmp DEBUG1
test_ok:
sts guiApp, yl
sts guiApp+1, yh
ret
@@ -311,9 +320,12 @@ test:
.dseg
guiApp: .byte 2
heapStart:
.equ HEAP_START = heapStart
.equ HEAP_SIZE = (SRAM_SIZE-STACK_SIZE)-HEAP_START