Faster C64 drawmountains proc.

This commit is contained in:
Pecusx
2023-05-22 23:41:12 +02:00
parent cc522f7a13
commit b2770d9b82
2 changed files with 8 additions and 3 deletions
+8 -3
View File
@@ -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
BIN
View File
Binary file not shown.