2018-01-10 16:34:57 +00:00
|
|
|
|
NEW
|
|
|
|
|
PREFIX /A2OSX.BUILD
|
|
|
|
|
AUTO 4,1
|
|
|
|
|
*--------------------------------------
|
2018-05-16 06:02:57 +00:00
|
|
|
|
WND.Init >LDYA L.DEVNAME.GFX
|
|
|
|
|
>SYSCALL GetDevByName.YA
|
|
|
|
|
bcs .9
|
|
|
|
|
|
|
|
|
|
stx hDevScreen
|
|
|
|
|
txa
|
|
|
|
|
>SYSCALL GetDevStatus.A
|
|
|
|
|
bcs .9
|
|
|
|
|
>STYA ZPPtr1
|
2018-01-10 16:34:57 +00:00
|
|
|
|
|
2018-05-16 06:02:57 +00:00
|
|
|
|
ldy #S.DSTAT.GFX.W
|
|
|
|
|
|
|
|
|
|
lda (ZPPtr1),y
|
|
|
|
|
sta WND.Cache+S.OBJ.W
|
|
|
|
|
iny
|
|
|
|
|
lda (ZPPtr1),y
|
|
|
|
|
sta WND.Cache+S.OBJ.W+1
|
|
|
|
|
|
|
|
|
|
lda SYSFONB.H
|
|
|
|
|
clc
|
|
|
|
|
adc #6
|
|
|
|
|
sta WND.TB.H
|
|
|
|
|
|
|
|
|
|
iny #S.DSTAT.GFX.H
|
|
|
|
|
|
|
|
|
|
lda (ZPPtr1),y
|
|
|
|
|
sec
|
|
|
|
|
sbc SYSFONB.H
|
|
|
|
|
sta WND.Cache+S.OBJ.H
|
|
|
|
|
|
|
|
|
|
iny
|
|
|
|
|
lda (ZPPtr1),y
|
|
|
|
|
sbc #0
|
|
|
|
|
sta WND.Cache+S.OBJ.H+1
|
|
|
|
|
|
|
|
|
|
lda #S.WND.F.NOBORDER
|
|
|
|
|
sta WND.Cache+S.OBJ.F
|
|
|
|
|
|
|
|
|
|
lda #CUR.T.ARROW
|
|
|
|
|
sta WND.Cache+S.WND.hCUR
|
|
|
|
|
>LDYA L.WND.CACHE
|
|
|
|
|
jsr WND.New
|
|
|
|
|
bcs .9
|
|
|
|
|
|
|
|
|
|
stx WND.Stack
|
|
|
|
|
|
|
|
|
|
.9 rts
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
WND.Quit
|
2018-01-10 16:34:57 +00:00
|
|
|
|
clc
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
2018-05-16 06:02:57 +00:00
|
|
|
|
WND.New >STYA ZPPtr1
|
|
|
|
|
>SYSCALL GetMem.YA
|
|
|
|
|
bcs .9
|
|
|
|
|
|
|
|
|
|
>STYA ZPWNDPtr
|
|
|
|
|
|
|
|
|
|
ldy #S.WND-1
|
|
|
|
|
|
|
|
|
|
.1 lda (ZPPtr1),y
|
|
|
|
|
sta (ZPWNDPtr),y
|
|
|
|
|
dey
|
|
|
|
|
bpl .1
|
|
|
|
|
|
|
|
|
|
.9 rts
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
WND.Paint >STYA ZPPtr1
|
2018-01-10 16:34:57 +00:00
|
|
|
|
|
2018-05-16 06:02:57 +00:00
|
|
|
|
clc
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
WND.Close
|
2018-01-10 16:34:57 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
|
|
|
|
SAVE /A2OSX.SRC/LIB/LIBGUI.S.WND
|
|
|
|
|
LOAD /A2OSX.SRC/LIB/LIBGUI.S
|
|
|
|
|
ASM
|