fix display of quoted control codes. Issue #11
This commit is contained in:
1 parent
366ee483cb
commit
8ffe1b61da
1 file changed
+11
-2
+11
-2
@@ -175,8 +175,17 @@ is_quote_mode:
|
||||
|
||||
;; Yes, a control code in quote mode means we display it as a reverse character
|
||||
pla
|
||||
and #$1F
|
||||
ora #$80
|
||||
|
||||
;; 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 low_ctrl_char
|
||||
adc #$bf ; C=1, so adding $BF + C = add $C0
|
||||
low_ctrl_char:
|
||||
jmp output_literal_char
|
||||
*
|
||||
pla
|
||||
|
||||
Reference in new issue
Block a user