mirror of
https://github.com/A2osX/A2osX.git
synced 2024-12-28 10:29:49 +00:00
118 lines
2.7 KiB
Plaintext
118 lines
2.7 KiB
Plaintext
PR#3
|
||
PREFIX /A2OSX.SRC
|
||
NEW
|
||
INC 1
|
||
AUTO 6
|
||
.LIST OFF
|
||
.OP 65C02
|
||
.OR $2000
|
||
.TF /A2OSX.BOOT/LIB/LIBGFX.O
|
||
*--------------------------------------
|
||
.INB /A2OSX.DEV/INC/MACROS.I
|
||
.INB /A2OSX.DEV/INC/A2OSX.I
|
||
.INB /A2OSX.DEV/INC/LIBGFX.I
|
||
*--------------------------------------
|
||
ZPPtr1 .EQ ZPLIB
|
||
*--------------------------------------
|
||
* File Header (16 Bytes)
|
||
*--------------------------------------
|
||
CS.START cld
|
||
jmp (.1,x)
|
||
.DA #$61 6502,Level 1 (65c02)
|
||
.DA #1 BIN Layout Version 1
|
||
.DA 0
|
||
.DA CS.END-CS.START
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
*--------------------------------------
|
||
* Relocation Table
|
||
*--------------------------------------
|
||
.1 .DA LIB.LOAD
|
||
.DA LIB.UNLOAD
|
||
.DA InitGFXA
|
||
.DA InitCursor
|
||
.DA SetCursorYA
|
||
.DA HideCursor
|
||
.DA ShowCursor
|
||
.DA 0
|
||
*--------------------------------------
|
||
LIB.LOAD
|
||
LIB.UNLOAD clc
|
||
rts
|
||
|
||
*--------------------------------------
|
||
InitGFXA sta hDev
|
||
>SYSCALL GetDevInfoA
|
||
bcs .9
|
||
>STYA ZPPtr1
|
||
|
||
|
||
clc
|
||
rts
|
||
|
||
.9 stz hDev
|
||
sec
|
||
rts
|
||
*--------------------------------------
|
||
InitCursor
|
||
*--------------------------------------
|
||
SetCursorYA
|
||
*--------------------------------------
|
||
HideCursor
|
||
*--------------------------------------
|
||
ShowCursor
|
||
|
||
clc
|
||
rts
|
||
*--------------------------------------
|
||
.INB LIB/LIBGFX.S.CUR
|
||
*--------------------------------------
|
||
CS.END
|
||
hDev .BS 1
|
||
*--------------------------------------
|
||
CUR.Arrow .DA #0
|
||
.DA #0
|
||
CUR.Arrow.DATA .DA %00000001.000000000
|
||
.DA %00000011.000000000
|
||
.DA %00000101.000000000
|
||
.DA %00001001.000000000
|
||
.DA %00010001.000000000
|
||
.DA %00100011.000000000
|
||
.DA %01110101.000000000
|
||
.DA %00011000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
CUR.Arrow.MASK .DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000010.000000000
|
||
.DA %00000110.000000000
|
||
.DA %00001110.000000000
|
||
.DA %00011100.000000000
|
||
.DA %00001000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
.DA %00000000.000000000
|
||
*--------------------------------------
|
||
PAT.Arrow .DA #S.BM.F.BBP1
|
||
.DA #1 RowBytes
|
||
.DA 7 W
|
||
.DA 8 H
|
||
.DA 0
|
||
*--------------------------------------
|
||
MAN
|
||
SAVE LIB/LIBGFX.S
|
||
ASM
|