megadrive_test1

diff src/io.h @ 6:862f8a034cae

expanding the megadrive code
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 11 Feb 2017 08:56:42 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/io.h	Sat Feb 11 08:56:42 2017 +0200
     1.3 @@ -0,0 +1,16 @@
     1.4 +#ifndef IO_H_
     1.5 +#define IO_H_
     1.6 +
     1.7 +#define IO_VERSION		(*(unsigned char*)0xa10001)
     1.8 +
     1.9 +#define IO_VER_MASK		0x0f
    1.10 +#define IO_VER_DISK		0x20
    1.11 +#define IO_VER_VMOD		0x40
    1.12 +#define IO_VER_MODE_BIT	0x80
    1.13 +
    1.14 +#define IO_Z80_MEM_START	0xa00000
    1.15 +
    1.16 +int mdg_version(void);
    1.17 +int mdg_ispal(void);
    1.18 +
    1.19 +#endif	/* IO_H_ */