]> git.sur5r.net Git - cc65/blob - libsrc/nes/chline.s
rename W2CAS.COM to w2cas.com (lowercase)
[cc65] / libsrc / nes / chline.s
1 ;
2 ; Ullrich von Bassewitz, 08.08.1998
3 ;
4 ; void chlinexy (unsigned char x, unsigned char y, unsigned char length);
5 ; void chline (unsigned char length);
6 ;
7
8         .export         _chlinexy, _chline
9         .import         popa, _gotoxy, cputdirect
10         .importzp       tmp1
11
12         .include        "nes.inc"
13                                  
14 _chlinexy:
15         pha                     ; Save the length
16         jsr     popa            ; Get y
17         jsr     _gotoxy         ; Call this one, will pop params
18         pla                     ; Restore the length
19
20 _chline:
21         cmp     #0              ; Is the length zero?
22         beq     L9              ; Jump if done
23         sta     tmp1
24 L1:     lda     #CH_HLINE       ; Horizontal line, screen code
25         jsr     cputdirect      ; Direct output
26         dec     tmp1
27         bne     L1
28 L9:     rts
29
30
31
32