|
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.
|
|