CHROUT screen output routine split, size and performance optimizations

This commit is contained in:
FeralChild64 committed 2019-10-09 18:45:37 +02:00
1 parent a442bf910f
commit 2cc6587b5c
8 files changed
+627 -521

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
//
// CHROUT routine - screen support, control codes in quote mode
//
chrout_screen_quote:
// Low control codes are just +$80
clc
adc #$80
// If it overflowed, then it is a high control code,
// so we need to make it be $80 + $40 + char
// as we will have flipped back to just $00 + char, we should
// now add $c0 if C is set from overflow
bcc !+
adc #$BF // C=1, so adding $BF + C = add $C0
!:
jmp output_literal_char