~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to src/emu/machine/mccs1850.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
294
294
{
295
295
}
296
296
 
297
 
void mccs1850_device::set_cb(cb_t _int_cb, cb_t _pse_cb, cb_t _nuc_cb)
 
297
void mccs1850_device::set_cb(line_cb_t _int_cb, line_cb_t _pse_cb, line_cb_t _nuc_cb)
298
298
{
299
299
        int_cb = _int_cb;
300
300
        pse_cb = _pse_cb;
353
353
 
354
354
 
355
355
//-------------------------------------------------
356
 
//  rtc_set_time - called to initialize the RTC to
357
 
//  a known state
358
 
//-------------------------------------------------
359
 
 
360
 
void mccs1850_device::rtc_set_time(int year, int month, int day, int day_of_week, int hour, int minute, int second)
361
 
{
362
 
}
363
 
 
364
 
 
365
 
//-------------------------------------------------
366
356
//  nvram_default - called to initialize NVRAM to
367
357
//  its default state
368
358
//-------------------------------------------------
371
361
{
372
362
        memset(m_ram, 0xff, RAM_SIZE);
373
363
 
374
 
        if (machine().region(tag()) != NULL)
 
364
        if (machine().root_device().memregion(tag()) != NULL)
375
365
        {
376
 
                UINT8 *nvram = machine().region(tag())->base();
 
366
                UINT8 *nvram = machine().root_device().memregion(tag())->base();
377
367
 
378
368
                // initialize NVRAM
379
369
                memcpy(m_ram, nvram, 0x20);