Skip to content

Instantly share code, notes, and snippets.

@gnacu
Created April 4, 2024 21:18
Show Gist options
  • Select an option

  • Save gnacu/d70848840a30d5cb00cfb2176cd94a8a to your computer and use it in GitHub Desktop.

Select an option

Save gnacu/d70848840a30d5cb00cfb2176cd94a8a to your computer and use it in GitHub Desktop.
;----[ Exports ]------------------------
.word init ;App Initializer
.word msgcmd ;Msg Command
.word willquit ;App Will Quit
.word raw_rts ;Freeze to REU
.word raw_rts ;Thaw from REU
;----[ State ]--------------------------
views .word 0 ;Left Scroll
.word 0 ;Left Container
.word 0 ;Rght Container
.word 0 ;Rght Tabs
.word 0 ;Rght Footer
tstviews .word 0,0,0,0,0,0,0
.word 0,0,0,0,0,0,0
.word 0,0,0,0,0,0,0
;---- Configurable state ---
seltab .byte 0 ;Selected Tab Index
brdrcol .byte 4 ;Default: Purple
;---------------------------
tabviews .word 0,0 ;tktcols,tktable
.word 0,0 ;tkscroll,tklist
.word 0,0 ;tkscroll,tktext
scrlayer .word drawmain
.word procmous
.word prockcmd
.word prockprt
.byte 0
drawctx .word 0 ;Char Origin
.word 0 ;Colr Origin
.byte screen_cols ;Buff Width
.byte screen_cols ;Draw Width
.byte screen_rows ;Draw Height
.word 0 ;Offset Top
.word 0 ;Offset Left
tkenv .word drawctx ;Draw Context
.byte 0 ;Memory Pool
.byte 1 ;Dirty
.byte 0 ;ScrLayer 0
.word 0 ;Root View
.word 0 ;1st Key View
.word 0 ;1st Mus View
.word 0 ;ClikMus View
.byte 0 ;Ctx2Scr PosX
.byte 0 ;Ctx2Scr PosY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment