mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 21:32:19 +00:00
f6d59f6e17
git-svn-id: svn://svn.cc65.org/cc65/trunk@3076 b7a2c559-68d2-44c3-8de9-860c34a00d81
27 lines
332 B
ArmAsm
27 lines
332 B
ArmAsm
;
|
|
; Christian Groessler, June 2004
|
|
;
|
|
; unsigned char _get_tv(void)
|
|
;
|
|
; returns the TV system the machine is using
|
|
; 0 - NTSC
|
|
; 1 - PAL
|
|
;
|
|
|
|
|
|
.include "atari.inc"
|
|
.export __get_tv
|
|
|
|
.proc __get_tv
|
|
|
|
lda PAL ; use hw register, PALNTS is only supported on XL/XE ROM
|
|
ldx #0
|
|
and #$0e
|
|
bne @NTSC
|
|
lda #1
|
|
rts
|
|
@NTSC: txa
|
|
rts
|
|
|
|
.endproc
|