mirror of
https://github.com/cc65/cc65.git
synced 2025-02-03 07:30:52 +00:00
libsrc/c16/get_tv.s: remove code duplication
Use the plus4 version of get_tv.s.
This commit is contained in:
parent
cc8ecd836f
commit
bba7c980e4
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user