From e0822357c7aba00c9a50fa88712b8b5b279e2ac8 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 10 Apr 2008 20:20:26 +0000 Subject: [PATCH] New get_tv function by Stefan Haubenthal. git-svn-id: svn://svn.cc65.org/cc65/trunk@3832 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/nes.sgml | 1 + include/nes.h | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/doc/nes.sgml b/doc/nes.sgml index a3ac79a68..d4e6a3fac 100644 --- a/doc/nes.sgml +++ b/doc/nes.sgml @@ -69,6 +69,7 @@ Programs containing NES specific code may use the waitvblank +get_tv diff --git a/include/nes.h b/include/nes.h index 7a2f3e176..48c5418e0 100644 --- a/include/nes.h +++ b/include/nes.h @@ -83,11 +83,19 @@ #define COLOR_LIGHTBLUE 0x0E #define COLOR_GRAY3 0x0F +/* Return codes of get_tv */ +#define TV_NTSC 0 +#define TV_PAL 1 +#define TV_OTHER 2 + void __fastcall__ waitvblank (void); /* Wait for the vertical blanking */ +unsigned char __fastcall__ get_tv (void); +/* Return the video mode the machine is using. */ + /* End of nes.h */