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