mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-26 13:49:18 +00:00
83 lines
1.7 KiB
Plaintext
83 lines
1.7 KiB
Plaintext
|
NEW
|
|||
|
AUTO 3,1
|
|||
|
.LIST OFF
|
|||
|
.OP 65C02
|
|||
|
.OR $2000
|
|||
|
.TF root/tuitest
|
|||
|
*--------------------------------------
|
|||
|
.INB inc/macros.i
|
|||
|
.INB inc/a2osx.i
|
|||
|
.INB inc/libtui.i
|
|||
|
*--------------------------------------
|
|||
|
.DUMMY
|
|||
|
.OR ZPBIN
|
|||
|
ZS.START
|
|||
|
ZS.END .ED
|
|||
|
*--------------------------------------
|
|||
|
* File Header (16 Bytes)
|
|||
|
*--------------------------------------
|
|||
|
CS.START cld
|
|||
|
jmp (.1,x)
|
|||
|
.DA #$61 6502,Level 1 (65c02)
|
|||
|
.DA #1 BIN Layout Version 1
|
|||
|
.DA #0 S.PS.F.EVENT
|
|||
|
.DA #0
|
|||
|
.DA CS.END-CS.START Code Size (without Constants)
|
|||
|
.DA DS.END-DS.START Data Segment Size
|
|||
|
.DA #32 Stack Size
|
|||
|
.DA #ZS.END-ZS.START Zero Page Size
|
|||
|
.DA 0
|
|||
|
*--------------------------------------
|
|||
|
.1 .DA CS.INIT
|
|||
|
.DA CS.RUN
|
|||
|
.DA CS.DOEVENT
|
|||
|
.DA CS.QUIT
|
|||
|
L.LIBTUI .DA LIBTUI
|
|||
|
.DA 0
|
|||
|
*--------------------------------------
|
|||
|
CS.INIT >LDYA L.LIBTUI
|
|||
|
>SYSCALL LoadLib
|
|||
|
bcs .9
|
|||
|
|
|||
|
sta hLIBTUI
|
|||
|
|
|||
|
.9 clc
|
|||
|
rts
|
|||
|
*--------------------------------------
|
|||
|
CS.RUN
|
|||
|
|
|||
|
lda #E.SYN
|
|||
|
sec
|
|||
|
rts
|
|||
|
*--------------------------------------
|
|||
|
CS.DOEVENT sec do not discard TIMER event
|
|||
|
rts
|
|||
|
*--------------------------------------
|
|||
|
CS.QUIT lda hLIBTUI
|
|||
|
beq .8
|
|||
|
|
|||
|
>SYSCALL UnloadLib
|
|||
|
|
|||
|
.8 clc
|
|||
|
rts
|
|||
|
*--------------------------------------
|
|||
|
CS.END
|
|||
|
*--------------------------------------
|
|||
|
LIBTUI .AZ "libtui"
|
|||
|
hLIBTUI .BS 1
|
|||
|
*--------------------------------------
|
|||
|
LBOX1 .DA #10 X1
|
|||
|
.DA #4 Y1
|
|||
|
.DA #20 W
|
|||
|
.DA #10 H
|
|||
|
LBOX1.Title .AZ "Title"
|
|||
|
*--------------------------------------
|
|||
|
.DUMMY
|
|||
|
.OR 0
|
|||
|
DS.START
|
|||
|
DS.END .ED
|
|||
|
*--------------------------------------
|
|||
|
MAN
|
|||
|
SAVE root/tuitest.s
|
|||
|
ASM
|