2021-09-07 12:32:31 +00:00
|
|
|
|
NEW
|
|
|
|
|
AUTO 3,1
|
|
|
|
|
.LIST OFF
|
|
|
|
|
*--------------------------------------
|
2021-12-02 21:28:26 +00:00
|
|
|
|
* SCRN.New hCTX,F 2
|
2021-09-07 12:32:31 +00:00
|
|
|
|
*--------------------------------------
|
2022-09-04 20:12:49 +00:00
|
|
|
|
SCRN.New lda #S.OBJ.T.SCRN
|
|
|
|
|
jsr OBJ.Create
|
2021-09-07 12:32:31 +00:00
|
|
|
|
bcs .9
|
|
|
|
|
|
2021-12-02 21:28:26 +00:00
|
|
|
|
>PULLA
|
|
|
|
|
ldy #S.OBJ.F
|
|
|
|
|
sta (ZPObjPtr),y
|
2021-09-07 12:32:31 +00:00
|
|
|
|
|
2021-12-02 21:28:26 +00:00
|
|
|
|
>PULLA
|
|
|
|
|
ldy #S.OBJ.hParent
|
|
|
|
|
sta (ZPObjPtr),y
|
2021-09-07 12:32:31 +00:00
|
|
|
|
|
2021-12-02 21:28:26 +00:00
|
|
|
|
>SYSCALL2 GetMemPtr
|
2023-02-10 18:19:29 +00:00
|
|
|
|
>STYA ZPPtr2 CTX
|
|
|
|
|
|
|
|
|
|
lda hObj
|
|
|
|
|
sta (ZPPtr2) S.CTX.hSCRN
|
2021-09-07 12:32:31 +00:00
|
|
|
|
|
2021-12-02 21:28:26 +00:00
|
|
|
|
ldy #S.CTX.W
|
|
|
|
|
lda (ZPPtr2),y
|
|
|
|
|
ldy #S.OBJ.W
|
|
|
|
|
sta (ZPObjPtr),y
|
2021-09-07 12:32:31 +00:00
|
|
|
|
|
2021-12-02 21:28:26 +00:00
|
|
|
|
ldy #S.CTX.H
|
|
|
|
|
lda (ZPPtr2),y
|
|
|
|
|
ldy #S.OBJ.H
|
|
|
|
|
sta (ZPObjPtr),y
|
2021-09-07 12:32:31 +00:00
|
|
|
|
|
2022-09-04 20:12:49 +00:00
|
|
|
|
jsr OBJ.SetX2Y2
|
|
|
|
|
|
2023-02-10 18:19:29 +00:00
|
|
|
|
|
|
|
|
|
|
2022-09-04 20:12:49 +00:00
|
|
|
|
lda hObj
|
|
|
|
|
* clc
|
|
|
|
|
rts
|
2021-09-07 12:32:31 +00:00
|
|
|
|
|
2021-12-02 21:28:26 +00:00
|
|
|
|
.9 >POP 2
|
2023-02-10 18:19:29 +00:00
|
|
|
|
.99 rts
|
2021-09-07 12:32:31 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
|
|
|
|
SAVE usr/src/lib/libtui.s.scrn
|
|
|
|
|
LOAD usr/src/lib/libtui.s
|
|
|
|
|
ASM
|