~ubuntu-branches/ubuntu/lucid/sdlmame/lucid

« back to all changes in this revision

Viewing changes to src/mame/drivers/djboy.c

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2009-11-03 17:10:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091103171015-6hop4ory5lxnumpn
Tags: 0.135-0ubuntu1
* New upstream release - Closes (LP: #403212)
* debian/watch: unstable releases are no longer detected
* mame.ini: added the cheat subdirectories to cheatpath so zipped
  cheatfiles will be searched too
* renamed crsshair subdirectory to crosshair to reflect upstream change
* mame.ini: renamed references to crosshair subdirectory (see above)

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
 
175
175
/* KANEKO BEAST state */
176
176
 
 
177
#define PROT_OUTPUT_BUFFER_SIZE 8
 
178
 
177
179
static int prot_busy_count;
178
 
#define PROT_OUTPUT_BUFFER_SIZE 8
179
180
static UINT8 prot_output_buffer[PROT_OUTPUT_BUFFER_SIZE];
180
181
static int prot_available_data_count;
181
182
static int prot_offs; /* internal state */
182
183
static UINT8 prot_ram[0x80]; /* internal RAM */
183
184
static UINT8 prot_param[8];
 
185
 
184
186
static int coin;
185
187
static int complete;
186
188
static int lives[2];
 
189
static int addr;
 
190
static int bankxor;
187
191
 
188
192
static enum
189
193
{
640
644
} /* beast_status_r */
641
645
 
642
646
/******************************************************************************/
643
 
static int bankxor;
644
 
 
645
647
static DRIVER_INIT( djboy )
646
648
{
 
649
        coin = 0;
 
650
        complete = 0;
 
651
        memset(lives, 0, sizeof(lives));
 
652
        addr = 0xff;
647
653
        bankxor = 0x00;
648
654
}
 
655
 
649
656
static DRIVER_INIT( djboyj )
650
657
{
 
658
        DRIVER_INIT_CALL( djboy );
651
659
        bankxor = 0x1f;
652
660
}
653
661
 
895
903
 
896
904
static INTERRUPT_GEN( djboy_interrupt )
897
905
{ /* CPU1 uses interrupt mode 2. For now, just alternate the two interrupts. */
898
 
        static int addr = 0xff;
899
906
        addr ^= 0x02;
900
907
        cpu_set_input_line_and_vector(device, 0, HOLD_LINE, addr);
901
908
}