2002-12-03 22:19:21 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 2002-12-03
|
|
|
|
;
|
2012-03-04 13:08:54 +00:00
|
|
|
; unsigned char get_tv (void);
|
2002-12-03 22:19:21 +00:00
|
|
|
; /* Return the video mode the machine is using */
|
|
|
|
;
|
|
|
|
|
|
|
|
.include "plus4.inc"
|
2013-05-09 11:56:54 +00:00
|
|
|
.include "get_tv.inc"
|
2002-12-03 22:19:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
;--------------------------------------------------------------------------
|
|
|
|
; _get_tv
|
|
|
|
|
|
|
|
.proc _get_tv
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
ldx #TV::PAL ; Assume PAL
|
2002-12-03 22:19:21 +00:00
|
|
|
bit TED_MULTI1 ; Test bit 6
|
|
|
|
bvc pal
|
|
|
|
dex ; NTSC
|
|
|
|
pal: txa
|
|
|
|
ldx #0
|
|
|
|
rts
|
|
|
|
|
|
|
|
.endproc
|