1
0
mirror of https://github.com/cc65/cc65.git synced 2025-02-04 13:32:54 +00:00

Merge pull request #370 from groessler/something_to_pull

libsrc/c16/get_tv.s: remove code duplication
This commit is contained in:
Oliver Schmidt 2017-01-26 17:07:13 +01:00 committed by GitHub
commit 6878ede5d7

View File

@ -1,27 +1 @@
;
; Ullrich von Bassewitz, 2002-12-03
;
; unsigned char __fastcall__ get_tv (void);
; /* Return the video mode the machine is using */
;
.include "plus4.inc"
.include "get_tv.inc"
;--------------------------------------------------------------------------
; _get_tv
.proc _get_tv
ldx #TV::PAL ; Assume PAL
bit TED_MULTI1 ; Test bit 6
bvc pal
dex ; NTSC
pal: txa
ldx #0
rts
.endproc
.include "../plus4/get_tv.s"