of course, you could not compile without these files ;)

This commit is contained in:
Fabio Priuli 2009-12-11 10:54:02 +00:00
parent 989a275f22
commit 72d156a858
3 changed files with 123 additions and 0 deletions

2
.gitattributes vendored
View File

@ -2306,6 +2306,7 @@ src/mame/includes/8080bw.h svneol=native#text/plain
src/mame/includes/actfancr.h svneol=native#text/plain
src/mame/includes/aeroboto.h svneol=native#text/plain
src/mame/includes/aerofgt.h svneol=native#text/plain
src/mame/includes/airbustr.h svneol=native#text/plain
src/mame/includes/ajax.h svneol=native#text/plain
src/mame/includes/alpha68k.h svneol=native#text/plain
src/mame/includes/ambush.h svneol=native#text/plain
@ -2415,6 +2416,7 @@ src/mame/includes/deco32.h svneol=native#text/plain
src/mame/includes/decocrpt.h svneol=native#text/plain
src/mame/includes/decoprot.h svneol=native#text/plain
src/mame/includes/deniam.h svneol=native#text/plain
src/mame/includes/djboy.h svneol=native#text/plain
src/mame/includes/dkong.h svneol=native#text/plain
src/mame/includes/docastle.h svneol=native#text/plain
src/mame/includes/dogfgt.h svneol=native#text/plain

View File

@ -0,0 +1,46 @@
/*************************************************************************
Air Buster
*************************************************************************/
typedef struct _airbustr_state airbustr_state;
struct _airbustr_state
{
/* memory pointers */
UINT8 * videoram;
UINT8 * videoram2;
UINT8 * colorram;
UINT8 * colorram2;
UINT8 * paletteram;
UINT8 * devram;
/* video-related */
tilemap *bg_tilemap, *fg_tilemap;
bitmap_t *sprites_bitmap;
int bg_scrollx, bg_scrolly, fg_scrollx, fg_scrolly, highbits;
/* misc */
int soundlatch_status, soundlatch2_status;
int master_addr;
int slave_addr;
/* devices */
const device_config *master;
const device_config *slave;
const device_config *audiocpu;
const device_config *pandora;
};
/*----------- defined in video/airbustr.c -----------*/
WRITE8_HANDLER( airbustr_videoram_w );
WRITE8_HANDLER( airbustr_colorram_w );
WRITE8_HANDLER( airbustr_videoram2_w );
WRITE8_HANDLER( airbustr_colorram2_w );
WRITE8_HANDLER( airbustr_scrollregs_w );
VIDEO_START( airbustr );
VIDEO_UPDATE( airbustr );
VIDEO_EOF( airbustr );

75
src/mame/includes/djboy.h Normal file
View File

@ -0,0 +1,75 @@
/*************************************************************************
DJ Boy
*************************************************************************/
#define PROT_OUTPUT_BUFFER_SIZE 8
typedef struct _djboy_state djboy_state;
struct _djboy_state
{
/* memory pointers */
UINT8 * videoram;
UINT8 * paletteram;
/* video-related */
tilemap *background;
UINT8 videoreg, scrollx, scrolly;
/* Kaneko BEAST state */
int prot_busy_count;
UINT8 prot_output_buffer[PROT_OUTPUT_BUFFER_SIZE];
int prot_available_data_count;
int prot_offs; /* internal state */
UINT8 prot_ram[0x80]; /* internal RAM */
UINT8 prot_param[8];
int coin;
int complete;
int lives[2];
int addr;
int bankxor;
int mDjBoyState;
int prot_mode;
/* devices */
const device_config *maincpu;
const device_config *cpu1;
const device_config *cpu2;
const device_config *pandora;
};
// mDjBoyState
enum
{
eDJBOY_ATTRACT_HIGHSCORE = 0,
eDJBOY_ATTRACT_TITLE,
eDJBOY_ATTRACT_GAMEPLAY,
eDJBOY_PRESS_P1_START,
eDJBOY_PRESS_P1_OR_P2_START,
eDJBOY_ACTIVE_GAMEPLAY
};
// prot_mode
enum
{
ePROT_NORMAL = 0,
ePROT_WRITE_BYTES,
ePROT_WRITE_BYTE,
ePROT_READ_BYTES,
ePROT_WAIT_DSW1_WRITEBACK,
ePROT_WAIT_DSW2_WRITEBACK,
ePROT_STORE_PARAM
};
/*----------- defined in video/djboy.c -----------*/
WRITE8_HANDLER( djboy_scrollx_w );
WRITE8_HANDLER( djboy_scrolly_w );
WRITE8_HANDLER( djboy_videoram_w );
WRITE8_HANDLER( djboy_paletteram_w );
VIDEO_START( djboy );
VIDEO_UPDATE( djboy );
VIDEO_EOF( djboy );