~ubuntu-branches/ubuntu/precise/mame/precise-proposed

« back to all changes in this revision

Viewing changes to src/mame/machine/s16fd.c

  • Committer: Package Import Robot
  • Author(s): Cesare Falco
  • Date: 2011-11-30 18:50:10 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111130185010-02hcxybht1mn082w
Tags: 0.144-0ubuntu1
* New upstream release (LP: #913550)
* mame.install:
  - Added artwork/ images to be used with -effect switch
  - Be more selective with hash/ contents
* contrib/mame.ini: added /usr/share/games/mame/artwork/ to artpath

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#include "machine/fddebug.h"
15
15
#include "includes/segas16.h"
16
16
 
17
 
 
 
17
#define KEY_DEBUGGING 0
18
18
#define CACHE_ENTRIES   8
19
19
 
20
20
static UINT8 *fd1094_key; // the memory region containing key
173
173
        }
174
174
}
175
175
 
176
 
 
 
176
#if KEY_DEBUGGING
177
177
static void key_changed(running_machine &machine)
178
178
{
179
179
        int addr;
194
194
        /* flush the prefetch queue */
195
195
        cpu_set_reg(machine.device(fd1094_cputag), M68K_PREF_ADDR, 0x0010);
196
196
}
197
 
 
 
197
#endif
198
198
 
199
199
/* startup function, to be called from DRIVER_INIT (once on startup) */
200
200
void fd1094_driver_init(running_machine &machine, const char* tag, void (*set_decrypted)(running_machine &, UINT8 *))
221
221
        fd1094_state = -1;
222
222
 
223
223
        /* key debugging */
 
224
#if KEY_DEBUGGING
224
225
        if ((machine.debug_flags & DEBUG_FLAG_ENABLED) != 0 && machine.region("user2")->base() != NULL)
225
226
        {
226
227
                fd1094_init_debugging(machine, fd1094_cputag, "user1", "user2", key_changed);
227
228
        }
 
229
#endif
228
230
 
229
231
        state_save_register_global(machine, fd1094_selected_state);
230
232
        state_save_register_global(machine, fd1094_state);