mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
Compilation option: faster graphics routines / better compatibility.
This commit is contained in:
+19
-2
@@ -1293,18 +1293,35 @@ drawmountainsloop
|
|||||||
beq NoMountain
|
beq NoMountain
|
||||||
sta ydraw
|
sta ydraw
|
||||||
sty ydraw+1
|
sty ydraw+1
|
||||||
; jsr DrawLine
|
.IF FASTER_GRAF_PROCS = 1
|
||||||
; there was Drawline proc
|
; there was Drawline proc
|
||||||
drawline
|
lda #screenheight
|
||||||
|
sec
|
||||||
|
sbc ydraw
|
||||||
|
sta tempbyte01
|
||||||
jsr plot.MakePlot
|
jsr plot.MakePlot
|
||||||
; after plot we have: (xbyte),y - addres of screen byte; X - index in bittable (number of bit)
|
; after plot we have: (xbyte),y - addres of screen byte; X - index in bittable (number of bit)
|
||||||
; jmp IntoDraw ; jumps inside Draw routine
|
; jmp IntoDraw ; jumps inside Draw routine
|
||||||
; because one pixel is already plotted (and who cares? :) )
|
; because one pixel is already plotted (and who cares? :) )
|
||||||
|
@
|
||||||
|
lda (xbyte),y
|
||||||
|
and bittable2,x
|
||||||
|
sta (xbyte),y
|
||||||
|
;IntoDraw
|
||||||
|
adw xbyte #screenBytes
|
||||||
|
dec tempbyte01
|
||||||
|
bne @-
|
||||||
|
; end of Drawline proc
|
||||||
|
.ELSE
|
||||||
|
; there was Drawline proc
|
||||||
|
drawline
|
||||||
|
jsr plot.MakePlot
|
||||||
inc ydraw
|
inc ydraw
|
||||||
lda ydraw
|
lda ydraw
|
||||||
cmp #screenheight
|
cmp #screenheight
|
||||||
bne drawline
|
bne drawline
|
||||||
; end of Drawline proc
|
; end of Drawline proc
|
||||||
|
.ENDIF
|
||||||
NoMountain
|
NoMountain
|
||||||
inw modify
|
inw modify
|
||||||
inw xdraw
|
inw xdraw
|
||||||
|
|||||||
@@ -12,6 +12,9 @@
|
|||||||
;---------------------------------------------------
|
;---------------------------------------------------
|
||||||
.def XCORRECTION_FOR_PM = 0
|
.def XCORRECTION_FOR_PM = 0
|
||||||
; if 1 - active x position of tanks correction fo PMG
|
; if 1 - active x position of tanks correction fo PMG
|
||||||
|
.def FASTER_GRAF_PROCS = 1
|
||||||
|
; if 1 - activates faster graphics routines
|
||||||
|
; (direct writes to screen memory - atari only :) )
|
||||||
;---------------------------------------------------
|
;---------------------------------------------------
|
||||||
|
|
||||||
;OPT r+ ; saves 12 bytes :O
|
;OPT r+ ; saves 12 bytes :O
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user