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 :)
; jmp IntoDraw ; jumps inside Draw routine
; 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
and bittable2,x
sta (xbyte),y
;IntoDraw
inc ydraw
lda xdraw
and #%11111000
lda temp
; lda xdraw
; and #%11111000
;sta xbyte
;---
ldy ydraw
clc
; clc ; C allways clear ! ?
adc linetableL,y
sta xbyte
lda linetableH,y
BIN
View File
Binary file not shown.