megadrive_test2

view 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 source
1 #ifndef MEGADRIVE_IO_H_
2 #define MEGADRIVE_IO_H_
4 #define IO_REG_VER *((volatile uint8_t*)0xa10001)
6 enum {
7 IO_VER_VERSION_MASK = 0x0f,
8 IO_VER_EXP = 0x20,
9 IO_VER_PAL = 0x40,
10 IO_VER_NONJP = 0x80
11 };
13 #endif /* MEGADRIVE_IO_H_ */