]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari/chline.s
used version from pet -- Atari is now a monochrome target
[cc65] / libsrc / atari / chline.s
index 6b5e6a19b5d094bb0f87af13ed56c5baf4253df6..e0d0a9629e84128ba747fa9e3a27779785befc13 100644 (file)
@@ -6,7 +6,7 @@
 ;
 
        .export         _chlinexy, _chline
-       .import         popa, _gotoxy, cputdirect
+       .import         popa, _gotoxy, cputdirect, setcursor
        .importzp       tmp1
 
 _chlinexy:
@@ -19,15 +19,11 @@ _chline:
        cmp     #0              ; Is the length zero?
        beq     L9              ; Jump if done
        sta     tmp1
-.ifdef DIRECT_SCREEN
 L1:            lda     #$12+64         ; Horizontal line, screen code
-.else
-L1:            lda     #$12            ; Horizontal line
-.endif
        jsr     cputdirect      ; Direct output
        dec     tmp1
        bne     L1
-L9:    rts
+L9:    jmp     setcursor