MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Naibo
Reged: 10/17/07
Posts: 148
Send PM
Re: About two devices sharing the same memory mapped space, in an interleaved manner
06/09/20 02:31 AM


I also tried to write a handler like this:
WRITE16_MEMBER(stepstag_state::dual_ymz280b_w)
{
if (ACCESSING_BITS_0_7)
ymz->write(data & 0xff, offset);

if (ACCESSING_BITS_8_15)
ymz1->write(data >> 8, offset);
}

However, when compiling (under gcc , it gives error messages:
error: ‘ymz’ was not declared in this scope
ymz->write(data & 0xff, offset);
^~~

The ymz has been added in the machine configuration function, then what is proper way to ref a device?







Entire thread
Subject Posted by Posted on
* About two devices sharing the same memory mapped space, in an interleaved manner Naibo 06/09/20 02:24 AM
. * Re: About two devices sharing the same memory mapped space, in an interleaved manner Vas Crabb  06/09/20 07:12 AM
. * Re: About two devices sharing the same memory mapped space, in an interleaved manner Naibo  06/12/20 05:46 AM
. * Re: About two devices sharing the same memory mapped space, in an interleaved manner Naibo  06/09/20 02:31 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 7 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 473