mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 21:34:20 +02:00
Faster C64 drawmountains proc.
This commit is contained in:
+8
-3
@@ -200,18 +200,23 @@ drawmountainsloop
|
|||||||
; X - index in bittable (number of bit) and nothing more (for use) in C64 :)
|
; X - index in bittable (number of bit) and nothing more (for use) in C64 :)
|
||||||
; 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 xdraw
|
||||||
|
and #%11111000
|
||||||
|
sta temp ; store for a bit faster add
|
||||||
|
clc ; and faster
|
||||||
@
|
@
|
||||||
lda (xbyte),y
|
lda (xbyte),y
|
||||||
and bittable2,x
|
and bittable2,x
|
||||||
sta (xbyte),y
|
sta (xbyte),y
|
||||||
;IntoDraw
|
;IntoDraw
|
||||||
inc ydraw
|
inc ydraw
|
||||||
lda xdraw
|
lda temp
|
||||||
and #%11111000
|
; lda xdraw
|
||||||
|
; and #%11111000
|
||||||
;sta xbyte
|
;sta xbyte
|
||||||
;---
|
;---
|
||||||
ldy ydraw
|
ldy ydraw
|
||||||
clc
|
; clc ; C allways clear ! ?
|
||||||
adc linetableL,y
|
adc linetableL,y
|
||||||
sta xbyte
|
sta xbyte
|
||||||
lda linetableH,y
|
lda linetableH,y
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user