change the way static RAM variable are declared and used

(cherry picked from commit 6cdb7304c2)
This commit is contained in:
2026-04-24 09:31:04 +02:00
parent 3992863664
commit b0758c6976
5 changed files with 55 additions and 47 deletions

22
src/reserved_space.asm Normal file
View File

@@ -0,0 +1,22 @@
; 0.5 second = 500_000_000 nano second = 0x0000_0000_1DCD_6500
pub ptr.tick_duration_high: U32 0x0000_0000
pub ptr.tick_duration_low: U32 0x1DCD_6500
; 1 second = 1_000_000_000 nano second = 0x0000_0000_3B9A_CA00
; pub ptr.tick_duration_high: U32 0x0000_0000
; pub ptr.tick_duration_low: U32 0x3B9A_CA00
pub ptr.next_tick_high: U32 0
pub ptr.next_tick_low: U32 0
pub ptr.state_robot:
U8 0 ; x coord
U8 0 ; y coord
U8 0 ; direction
pub ptr.state_ghost:
U8 0 ; x coord
U8 0 ; y coord
U8 0 ; direction
pub ptr.screen: