]> git.sur5r.net Git - cc65/commitdiff
Comment the ATASCII to screen code conversion. 832/head
authorPiotr Fusik <fox@scene.pl>
Wed, 23 Jan 2019 18:02:26 +0000 (19:02 +0100)
committerPiotr Fusik <fox@scene.pl>
Wed, 23 Jan 2019 18:02:26 +0000 (19:02 +0100)
libsrc/atari/cputc.s

index 6345983fef32db8e76ef50e83a7f16cd3c2d54f1..7132fdca613a69c0e238310aa1a1dc088ea1955c 100644 (file)
@@ -30,13 +30,13 @@ L4:     cmp     #$0A            ; LF
         cmp     #ATEOL          ; Atari-EOL?
         beq     newline
 
-        asl     a
-        adc     #$c0
-        bpl     intok
-        eor     #$40
-intok:  lsr
+        asl     a               ; shift out the inverse bit
+        adc     #$c0            ; grab the inverse bit; convert ATASCII to screen code
+        bpl     codeok          ; screen code ok?
+        eor     #$40            ; needs correction
+codeok: lsr     a               ; undo the shift
         bcc     cputdirect
-        eor     #$80
+        eor     #$80            ; restore the inverse bit
 
 cputdirect:                     ; accepts screen code
         jsr     putchar