MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4462
Loc: Melbourne, Australia
Send PM
Re: How to get real offset
11/12/15 05:25 AM


> Thanks, It makes sense now! :-)
>
> I'm aware that this is a simple thing, but i'm just learning something basic indeed.
> And yes, I know that there are more difficult things in mame, but I'm just a
> beginner, so I need lots of clarifications.

You also have to be aware that in some cases, you're just going to have to do the masking yourself in your handler function. For example look at this one:
https://github.com/mamedev/mame/blob/master/src/mame/machine/osborne1.cpp#L65
There is logic on the mainboard to identify I/O requests in the 0x2000-0x3fff range, but each peripheral only checks two additional address bits. This means that it's possible to select an address that will write to multiple peripherals at once, e.g. 0x2e00-0x2eff will write to both the video PIA and serial ACIA. MAME caters for common cases, but there are a lot of ways you can hook physical hardware up.







Entire thread
Subject Posted by Posted on
* How to get real offset dma.request 11/09/15 12:08 PM
. * Re: How to get real offset R. Belmont  11/11/15 08:54 PM
. * Re: How to get real offset dma.request  11/12/15 03:25 AM
. * Re: How to get real offset Haze  11/09/15 07:57 PM
. * Re: How to get real offset dma.request  11/09/15 09:30 PM
. * Re: How to get real offset dma.request  11/10/15 08:33 PM
. * Re: How to get real offset Haze  11/11/15 11:03 AM
. * Re: How to get real offset dma.request  11/11/15 01:07 PM
. * Re: How to get real offset Haze  11/11/15 06:02 PM
. * Re: How to get real offset dma.request  11/11/15 08:45 PM
. * Re: How to get real offset Vas Crabb  11/12/15 05:25 AM
. * Re: How to get real offset AWJ  11/09/15 07:56 PM

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