megadrive_test2
diff src/io.h @ 6:df2c6b3c6f2e
added NTSC/PAL detection
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 21 Jun 2017 06:32:10 +0300 |
parents | |
children | 108ecc582a11 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/io.h Wed Jun 21 06:32:10 2017 +0300 1.3 @@ -0,0 +1,13 @@ 1.4 +#ifndef MEGADRIVE_IO_H_ 1.5 +#define MEGADRIVE_IO_H_ 1.6 + 1.7 +#define IO_REG_VER *((volatile uint8_t*)0xa10001) 1.8 + 1.9 +enum { 1.10 + IO_VER_VERSION_MASK = 0x0f, 1.11 + IO_VER_EXP = 0x20, 1.12 + IO_VER_PAL = 0x40, 1.13 + IO_VER_NONJP = 0x80 1.14 +}; 1.15 + 1.16 +#endif /* MEGADRIVE_IO_H_ */