megadrive_test1

annotate 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
rev   line source
nuclear@6 1 #ifndef IO_H_
nuclear@6 2 #define IO_H_
nuclear@6 3
nuclear@6 4 #define IO_VERSION (*(unsigned char*)0xa10001)
nuclear@6 5
nuclear@6 6 #define IO_VER_MASK 0x0f
nuclear@6 7 #define IO_VER_DISK 0x20
nuclear@6 8 #define IO_VER_VMOD 0x40
nuclear@6 9 #define IO_VER_MODE_BIT 0x80
nuclear@6 10
nuclear@6 11 #define IO_Z80_MEM_START 0xa00000
nuclear@6 12
nuclear@6 13 int mdg_version(void);
nuclear@6 14 int mdg_ispal(void);
nuclear@6 15
nuclear@6 16 #endif /* IO_H_ */