Merge pull request #370 from groessler/something_to_pull
libsrc/c16/get_tv.s: remove code duplication
This commit is contained in:
commit
6878ede5d7
1 changed files with 1 additions and 27 deletions
|
@ -1,27 +1 @@
|
||||||
;
|
.include "../plus4/get_tv.s"
|
||||||
; 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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue