mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 15:29:46 +00:00
44197d3708
git-svn-id: svn://svn.cc65.org/cc65/trunk@3261 b7a2c559-68d2-44c3-8de9-860c34a00d81
27 lines
387 B
ArmAsm
27 lines
387 B
ArmAsm
;
|
|
; Christian Groessler, July 2004
|
|
;
|
|
; unsigned char get_tv(void)
|
|
;
|
|
; returns the TV system the machine is using
|
|
; 0 - NTSC
|
|
; 1 - PAL
|
|
;
|
|
|
|
|
|
.include "atari.inc"
|
|
.include "get_tv.inc"
|
|
|
|
.proc _get_tv
|
|
|
|
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
|
|
|
|
.endproc
|