A2osX/LIB/LIBGUI.S.BUT.txt

41 lines
628 B
Plaintext
Raw Normal View History

NEW
2018-11-17 17:17:13 +00:00
PREFIX
AUTO 4,1
*--------------------------------------
BUT.New >STYA ZPPtr1
2019-01-10 16:26:58 +00:00
ldy #S.OBJ.W
lda (ZPPtr1),y
iny
ora (ZPPtr1),y
2019-01-08 16:29:26 +00:00
bne .1 W in !NULL, static size
ldy #S.BUT.hBM
lda (ZPPtr1),y
beq .1
ldy #S.BM.W
2019-05-05 17:15:37 +00:00
>SYSCALL2 GetStkObjProp
phy
2019-01-10 16:26:58 +00:00
ldy #S.OBJ.W+1
sta (ZPPtr1),y
dey
pla
sta (ZPPtr1),y
2019-01-08 16:29:26 +00:00
.1
clc
rts
*--------------------------------------
BUT.Draw
*--------------------------------------
*--------------------------------------
MAN
2018-11-17 17:17:13 +00:00
SAVE USR/SRC/LIB/LIBGUI.S.BUT
LOAD USR/SRC/LIB/LIBGUI.S
ASM