]> git.sur5r.net Git - cc65/blob - libsrc/c16/get_tv.s
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / libsrc / c16 / get_tv.s
1 ;
2 ; Ullrich von Bassewitz, 2002-12-03
3 ;
4 ; unsigned char __fastcall__ get_tv (void);
5 ; /* Return the video mode the machine is using */
6 ;
7
8         .include        "plus4.inc"
9         .include        "get_tv.inc"
10
11
12 ;--------------------------------------------------------------------------
13 ; _get_tv
14
15 .proc   _get_tv
16
17         ldx     #TV::PAL        ; Assume PAL
18         bit     TED_MULTI1      ; Test bit 6
19         bvc     pal
20         dex                     ; NTSC
21 pal:    txa
22         ldx     #0
23         rts
24
25 .endproc
26
27