mirror of
https://github.com/bobbimanners/Applecorn.git
synced 2025-01-16 16:30:54 +00:00
Implemented plotting of filled rectangles.
This commit is contained in:
parent
f583aa73e1
commit
d3b7a50cde
BIN
applecorn.po
BIN
applecorn.po
Binary file not shown.
22
auxmem.gfx.s
22
auxmem.gfx.s
@ -145,7 +145,10 @@ HGRPLOTACT LDA VDUQ+4
|
|||||||
BEQ :LINE
|
BEQ :LINE
|
||||||
CMP #$40
|
CMP #$40
|
||||||
BEQ :POINT
|
BEQ :POINT
|
||||||
CMP #$90
|
CMP #$60
|
||||||
|
BNE :S1
|
||||||
|
JMP :RECT
|
||||||
|
:S1 CMP #$90
|
||||||
BNE :UNDEF
|
BNE :UNDEF
|
||||||
JMP :CIRC
|
JMP :CIRC
|
||||||
:UNDEF RTS
|
:UNDEF RTS
|
||||||
@ -177,6 +180,23 @@ HGRPLOTACT LDA VDUQ+4
|
|||||||
STA FDRAWADDR+11 ; Y1
|
STA FDRAWADDR+11 ; Y1
|
||||||
>>> WRTAUX
|
>>> WRTAUX
|
||||||
>>> XF2MAIN,DRAWLINE
|
>>> XF2MAIN,DRAWLINE
|
||||||
|
:RECT >>> WRTMAIN
|
||||||
|
LDA VDUQ+4
|
||||||
|
STA PLOTMODE
|
||||||
|
LDA XPIXEL+0
|
||||||
|
STA FDRAWADDR+6
|
||||||
|
LDA XPIXEL+1
|
||||||
|
STA FDRAWADDR+7
|
||||||
|
LDA YPIXEL
|
||||||
|
STA FDRAWADDR+8
|
||||||
|
LDA VDUQ+5
|
||||||
|
STA FDRAWADDR+9 ; LSB of X1
|
||||||
|
LDA VDUQ+6
|
||||||
|
STA FDRAWADDR+10 ; MSB of X1
|
||||||
|
LDA VDUQ+7
|
||||||
|
STA FDRAWADDR+11 ; Y1
|
||||||
|
>>> WRTAUX
|
||||||
|
>>> XF2MAIN,FILLRECT
|
||||||
:CIRC >>> WRTMAIN
|
:CIRC >>> WRTMAIN
|
||||||
LDA XPIXEL+0
|
LDA XPIXEL+0
|
||||||
STA FDRAWADDR+6
|
STA FDRAWADDR+6
|
||||||
|
@ -60,6 +60,12 @@ FILLCIRC >>> ENTMAIN
|
|||||||
JSR FDRAWADDR+40 ; FDRAW: FillCircle
|
JSR FDRAWADDR+40 ; FDRAW: FillCircle
|
||||||
>>> XF2AUX,VDU25RET
|
>>> XF2AUX,VDU25RET
|
||||||
|
|
||||||
|
* Call FDraw FillRect routine
|
||||||
|
FILLRECT >>> ENTMAIN
|
||||||
|
JSR SETCOLOR
|
||||||
|
JSR FDRAWADDR+34 ; FDRAW: FillRect
|
||||||
|
>>> XF2AUX,VDU25RET
|
||||||
|
|
||||||
* Reset colours and linetype
|
* Reset colours and linetype
|
||||||
GFXINIT JSR FDRAWADDR+0 ; Initialize FDRAW library
|
GFXINIT JSR FDRAWADDR+0 ; Initialize FDRAW library
|
||||||
LDA #$20
|
LDA #$20
|
||||||
|
Loading…
x
Reference in New Issue
Block a user