2017-12-22 21:24:30 +00:00
|
|
|
|
NEW
|
2017-11-14 16:57:34 +00:00
|
|
|
|
PREFIX /A2OSX.BUILD
|
2017-12-22 21:24:30 +00:00
|
|
|
|
AUTO 4,1
|
2017-11-14 16:57:34 +00:00
|
|
|
|
.LIST OFF
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
* FILLRECT
|
2017-11-17 16:16:05 +00:00
|
|
|
|
* 1 : OP (XOR,SET,ORA)
|
2017-11-14 16:57:34 +00:00
|
|
|
|
* 2 : Mode
|
|
|
|
|
* 3 : Color
|
|
|
|
|
* 4 : SrcX1
|
|
|
|
|
* 6 : SrcY1
|
|
|
|
|
* 8 : SrcX2
|
|
|
|
|
* 10 : SrcY2
|
|
|
|
|
*--------------------------------------
|
2017-11-15 07:27:12 +00:00
|
|
|
|
FILLRECT jsr HLINE
|
2017-11-14 16:57:34 +00:00
|
|
|
|
|
2017-11-15 07:27:12 +00:00
|
|
|
|
ldy CB.Cache+S.CB.Y1
|
|
|
|
|
cpy CB.Cache+S.CB.Y2
|
2017-11-16 16:46:18 +00:00
|
|
|
|
beq .8
|
2017-11-15 07:27:12 +00:00
|
|
|
|
|
2017-11-16 16:46:18 +00:00
|
|
|
|
.2 iny
|
|
|
|
|
phy
|
|
|
|
|
jsr LBUF.DrawAtY
|
|
|
|
|
ply
|
2017-11-15 07:27:12 +00:00
|
|
|
|
cpy CB.Cache+S.CB.Y2
|
2017-11-16 16:46:18 +00:00
|
|
|
|
bne .2
|
2017-11-15 07:27:12 +00:00
|
|
|
|
|
2017-11-14 16:57:34 +00:00
|
|
|
|
.8 rts
|
|
|
|
|
*--------------------------------------
|
2017-11-17 16:16:05 +00:00
|
|
|
|
* 4 : SrcX1
|
|
|
|
|
* 6 : SrcY1
|
|
|
|
|
* 8 : SrcX2
|
|
|
|
|
* 10 : SrcY2
|
|
|
|
|
* 18 : S.CB.DstPtr = Size in Bytes to save this RECT
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
GETRECTBUFSIZE >LDYA CB.Cache+S.CB.X1
|
|
|
|
|
jsr DIVMOD7YA
|
|
|
|
|
|
2018-05-04 14:55:29 +00:00
|
|
|
|
sta ZPTmpByte
|
2017-11-17 16:16:05 +00:00
|
|
|
|
|
|
|
|
|
>LDYA CB.Cache+S.CB.X2
|
|
|
|
|
jsr DIVMOD7YA
|
|
|
|
|
|
|
|
|
|
inc COL2 + 1
|
|
|
|
|
sec
|
2018-05-04 14:55:29 +00:00
|
|
|
|
sbc ZPTmpByte (COL2+1)-COL1
|
2017-11-17 16:16:05 +00:00
|
|
|
|
tax
|
|
|
|
|
|
|
|
|
|
>LDYA CB.Cache+S.CB.Y1
|
|
|
|
|
jsr YAMultX
|
|
|
|
|
|
|
|
|
|
phy
|
|
|
|
|
|
|
|
|
|
ldy #S.CB.DstPtr+1
|
|
|
|
|
sta (ZPCmdPtr),y
|
|
|
|
|
pla
|
|
|
|
|
dey
|
|
|
|
|
sta (ZPCmdPtr),y
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
2017-11-14 16:57:34 +00:00
|
|
|
|
MAN
|
|
|
|
|
SAVE /A2OSX.SRC/DRV/DHGR.DRV.S.BLT
|
|
|
|
|
LOAD /A2OSX.SRC/DRV/DHGR.DRV.S
|
|
|
|
|
ASM
|