A2osX/LIB/LIBGFX.S.txt

107 lines
2.4 KiB
Plaintext
Raw Normal View History

PR#3
2015-06-03 18:30:57 +00:00
PREFIX /A2OSX.SRC
NEW
INC 1
AUTO 6
.LIST OFF
.OP 65C02
.OR $2000
2016-03-13 22:07:37 +00:00
.TF /A2OSX.BOOT/LIB/LIBGFX.O
*--------------------------------------
.INB INC/MACROS.I
.INB INC/A2OSX.I
.INB INC/LIBGFX.I
*--------------------------------------
2016-06-15 06:21:42 +00:00
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
2016-06-15 15:58:45 +00:00
.DA InitGFXA
.DA InitCursor
.DA SetCursorYA
.DA HideCursor
.DA ShowCursor
.DA 0
*--------------------------------------
LIB.LOAD
LIB.UNLOAD clc
rts
2016-06-15 06:21:42 +00:00
*--------------------------------------
2016-06-15 15:58:45 +00:00
InitGFXA sta hDev
2016-06-15 06:21:42 +00:00
>SYSCALL SYS.GetDevInfoA
bcs .9
>STYA ZPPtr1
clc
rts
.9 stz hDev
sec
rts
*--------------------------------------
.INB LIB/LIBGFX.S.CUR
*--------------------------------------
CS.END
2016-06-15 06:21:42 +00:00
hDev .BS 1
*--------------------------------------
2016-06-15 15:58:45 +00:00
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
2016-06-15 06:21:42 +00:00
*--------------------------------------
2016-06-15 15:58:45 +00:00
PAT.Arrow .DA #S.BITMAP.F.BBP1
.DA #1 RowBytes
.DA 7 W
.DA 8 H
.DA 0
2016-06-15 06:21:42 +00:00
*--------------------------------------
MAN
SAVE LIB/LIBGFX.S
ASM