Napalm and Diggers optimizations (TypeChar)

This commit is contained in:
Pecusx
2023-06-16 17:47:10 +02:00
parent 7621f70656
commit 86d26fe2a1
11 changed files with 33 additions and 40 deletions
+13
View File
@@ -402,6 +402,18 @@ NoClearTanks
; in: CharCode
; in: left LOWER corner of the char coordinates (xdraw, ydraw)
;--------------------------------------------------
; check coordinates
cpw xdraw #(screenwidth-7)
bcs CharOffTheScreen
lda ydraw
cmp #7
bcc CharOffTheScreen
cmp #(screenHeight-1)
bcc CharOnTheScreen
CharOffTheScreen
rts
CharOnTheScreen
Fast ; Put char without coordinates check!
; char to the table
lda CharCode
sta fontind
@@ -560,6 +572,7 @@ EndPutChar
jcs TypeChar.EndPutChar ;nearest RTS
; checks ommited.
; char to the table
Fast ; Put char without coordinates check!
lda CharCode4x4
and #%00000001
beq Upper4bits ; A=0