|
Joined: Mar 2001
Posts: 17,215 Likes: 234
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,215 Likes: 234 |
The bankdev device is very powerful: it maps a sliding-window view of its own address map into the source address map.
The key is here:
MCFG_ADDRESS_MAP_BANK_STRIDE(0x10000)
That means that the number you pass to set_bank is multiplied by that to get where in the bankdev's address map is visible in the main address map.
So Z80 address 0 is 0 in the bankdev's map when set_bank(0), and Z80 address 0 is 0x10000 in the bankdev's map when set_bank(1). MAME crashes when you omit the RAM because it's not an additional 64K, it's the base 64K for CP/M mode where 100% of the 64K is usable RAM.
The bonus of all of this over conventional banking in MAME is that it's much faster when the bank view changes frequently, because it's only updating the base address of the sliding window. The "new" 2014 Apple II driver was about 3 times faster simply because I changed it to use bankdev instead of the old-style banking.
|
|
|
Entire Thread
|
Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
06/28/17 10:27 PM
|
Re: Triumph-Adler P3 (all P series machines)
|
rfka01
|
06/28/17 10:37 PM
|
Re: Triumph-Adler P3 (all P series machines)
|
rfka01
|
06/28/17 10:50 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
06/30/17 09:55 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
07/02/17 06:24 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
09/07/17 08:24 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
Duke
|
09/21/17 12:09 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
09/22/17 05:10 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
10/25/17 08:16 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
helwie44
|
11/22/17 11:41 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
11/22/17 02:42 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
Duke
|
11/23/17 09:03 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
11/25/17 11:53 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
AJR
|
11/26/17 01:49 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
crazyc
|
11/26/17 02:48 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
crazyc
|
11/26/17 03:24 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
11/27/17 10:56 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
R. Belmont
|
11/27/17 11:07 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
R. Belmont
|
11/28/17 12:40 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
crazyc
|
11/28/17 04:06 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
crazyc
|
11/29/17 03:22 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
11/29/17 06:44 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
11/29/17 11:11 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
crazyc
|
11/29/17 03:52 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
AJR
|
11/29/17 04:13 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
11/30/17 10:08 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
helwie44
|
12/08/17 09:16 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
12/10/17 11:17 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
AJR
|
12/10/17 02:44 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
12/10/17 04:27 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
Duke
|
12/10/17 04:39 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
12/10/17 05:45 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
12/11/17 11:18 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
12/14/17 11:21 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
jlopezm
|
12/15/17 12:50 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
12/15/17 03:03 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
crazyc
|
12/17/17 11:03 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
12/17/17 11:36 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
helwie44
|
12/18/17 08:24 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
12/18/17 08:48 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
helwie44
|
12/26/17 03:17 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
R. Belmont
|
12/26/17 04:14 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
12/29/17 11:00 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
R. Belmont
|
12/29/17 11:47 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
Lord Nightmare
|
12/30/17 11:58 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
01/01/18 10:27 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
01/07/18 11:31 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
AJR
|
01/08/18 04:26 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
R. Belmont
|
01/08/18 01:57 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
AJR
|
01/08/18 02:15 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
01/08/18 11:05 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
01/09/18 07:11 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
helwie44
|
01/19/18 07:37 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
01/27/18 09:38 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
01/28/18 10:59 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
Duke
|
01/28/18 12:05 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
01/28/18 03:34 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
Duke
|
01/28/18 04:20 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
01/29/18 08:11 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
Vas Crabb
|
01/29/18 08:15 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
01/29/18 09:06 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
02/03/18 11:43 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
02/25/18 04:52 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
crazyc
|
02/25/18 05:09 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
02/25/18 05:31 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
02/25/18 09:46 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
crazyc
|
02/25/18 11:26 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
02/26/18 07:11 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
Lord Nightmare
|
02/26/18 08:25 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
crazyc
|
02/26/18 02:40 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
02/27/18 01:20 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
crazyc
|
02/27/18 03:19 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
helwie44
|
02/27/18 05:35 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
R. Belmont
|
02/27/18 05:39 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
02/28/18 07:04 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
crazyc
|
02/28/18 08:23 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
03/01/18 07:48 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
03/03/18 09:40 AM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
helwie44
|
03/03/18 04:15 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
rfka01
|
03/28/18 09:40 PM
|
Re: Triumph-Adler alphatronic P3 (+ P1, P2 and P4)
|
helwie44
|
04/03/18 06:02 PM
|
|
0 members (),
311
guests, and
1
robot. |
Key:
Admin,
Global Mod,
Mod
|
|
Forums9
Topics9,320
Posts121,929
Members5,074
|
Most Online1,283 Dec 21st, 2022
|
|
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!
|
|
|
|