2017-12-22 21:24:30 +00:00
|
|
|
|
NEW
|
2019-07-25 15:10:59 +00:00
|
|
|
|
AUTO 3,1
|
2017-11-14 16:57:34 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
* 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
|
2020-07-04 19:00:47 +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
|
2020-06-09 13:40:21 +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
|
2020-07-04 19:00:47 +00:00
|
|
|
|
inc COL2 + 1
|
2017-11-17 16:16:05 +00:00
|
|
|
|
sec
|
2018-05-04 14:55:29 +00:00
|
|
|
|
sbc ZPTmpByte (COL2+1)-COL1
|
2017-11-17 16:16:05 +00:00
|
|
|
|
tax
|
2020-07-04 19:00:47 +00:00
|
|
|
|
>LDYA CB.Cache+S.CB.SrcH
|
|
|
|
|
jmp YAMultX
|
2017-11-17 16:16:05 +00:00
|
|
|
|
*--------------------------------------
|
2017-11-14 16:57:34 +00:00
|
|
|
|
MAN
|
2020-08-25 14:54:30 +00:00
|
|
|
|
SAVE usr/src/drv/dhgr.drv.s.rect
|
2020-06-09 13:40:21 +00:00
|
|
|
|
LOAD usr/src/drv/dhgr.drv.s
|
2017-11-14 16:57:34 +00:00
|
|
|
|
ASM
|