2000-12-04 20:20:16 +00:00
|
|
|
;
|
2004-07-09 19:23:13 +00:00
|
|
|
; Christian Groessler, July 2004
|
2000-12-04 20:20:16 +00:00
|
|
|
;
|
2004-07-09 19:23:13 +00:00
|
|
|
; unsigned char get_tv(void)
|
2000-12-04 20:20:16 +00:00
|
|
|
;
|
|
|
|
; returns the TV system the machine is using
|
2001-11-06 01:22:54 +00:00
|
|
|
; 0 - NTSC
|
|
|
|
; 1 - PAL
|
2000-12-04 20:20:16 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.include "atari.inc"
|
|
|
|
.include "get_tv.inc"
|
2000-12-04 20:20:16 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.proc _get_tv
|
2000-12-04 20:20:16 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
ldx #TV::NTSC ; Assume NTSC
|
|
|
|
lda PAL ; use hw register, PALNTS is only supported on XL/XE ROM
|
|
|
|
and #$0e
|
|
|
|
bne @NTSC
|
|
|
|
inx ; = TV::PAL
|
|
|
|
@NTSC: txa
|
|
|
|
ldx #0 ; Expand to int
|
|
|
|
rts
|
2000-12-04 20:20:16 +00:00
|
|
|
|
|
|
|
.endproc
|