From: cuz Date: Thu, 10 Apr 2008 20:20:26 +0000 (+0000) Subject: New get_tv function by Stefan Haubenthal. X-Git-Tag: V2.12.0~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e0822357c7aba00c9a50fa88712b8b5b279e2ac8;p=cc65 New get_tv function by Stefan Haubenthal. git-svn-id: svn://svn.cc65.org/cc65/trunk@3832 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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 */