2018-05-04 14:55:29 +00:00
|
|
|
|
NEW
|
|
|
|
|
PREFIX /A2OSX.BUILD
|
|
|
|
|
AUTO 4,1
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
BUT.New >STYA ZPPtr1
|
|
|
|
|
|
2018-05-07 14:59:51 +00:00
|
|
|
|
ldy #S.CTRL.W
|
|
|
|
|
lda (ZPPtr1),y
|
|
|
|
|
iny
|
|
|
|
|
ora (ZPPtr1),y
|
|
|
|
|
bne . W in !NULL, static size
|
|
|
|
|
|
2018-05-04 14:55:29 +00:00
|
|
|
|
ldy #S.BUT.hBM
|
|
|
|
|
lda (ZPPtr1),y
|
2018-05-07 14:59:51 +00:00
|
|
|
|
beq .1
|
2018-05-04 14:55:29 +00:00
|
|
|
|
|
2018-05-07 14:59:51 +00:00
|
|
|
|
ldy #S.BM.W
|
|
|
|
|
>SYSCALL GetStkObjProperty.AY
|
|
|
|
|
|
|
|
|
|
phy
|
|
|
|
|
ldy #S.CTRL.W+1
|
|
|
|
|
sta (ZPPtr1),y
|
|
|
|
|
dey
|
|
|
|
|
pla
|
|
|
|
|
sta (ZPPtr1),y
|
|
|
|
|
|
|
|
|
|
.1 ldy
|
2018-05-04 14:55:29 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
BUT.Draw
|
|
|
|
|
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
|
|
|
|
SAVE /A2OSX.SRC/LIB/LIBGUI.S.BUT
|
|
|
|
|
LOAD /A2OSX.SRC/LIB/LIBGUI.S
|
|
|
|
|
ASM
|