1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00

New get_tv function by Stefan Haubenthal.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3832 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2008-04-10 20:20:26 +00:00
parent 1a0c871976
commit e0822357c7
2 changed files with 9 additions and 0 deletions

View File

@ -69,6 +69,7 @@ Programs containing NES specific code may use the <tt/nes.h/ header file.
<itemize>
<item>waitvblank
<item>get_tv
</itemize>

View File

@ -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 */