Previous Thread
Next Thread
Print Thread
#98450 02/28/15 12:37 PM
Joined: Dec 2013
Posts: 4
Member
OP Offline
Member
Joined: Dec 2013
Posts: 4
I've been working on the Intel iPDS driver, which is now at the stage where it is starting to boot from a floppy disk. Here is a snap:



The ROM and RAM in this system are overlapped as follows:

ROM: 0x0000 - 0x7fff
RAM: 0x0000 - 0xffff

When the O/S starts up it writes to I/O port 0xF0 to disable the ROM and make the lower half of the RAM visible. How do I acheive this with MESS? (i.e. How do I disable the address map entry for the ROM at runtime?) Is there another driver I can look at to see an example?

This is the reason for the RAM error show above.

Matt

Matt Burke #98451 02/28/15 12:51 PM
Joined: Mar 2001
Posts: 17,093
Likes: 153
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 17,093
Likes: 153
You want to use a bankdev device for that. Look at the RAM/ROM switching from 0xd000-0xffff in the new drivers/apple2.c for an example.

Basically what it does is it allows an address range to be a view onto a second address map, and then a fixed bank offset is applied. In the Apple II case, the second map is the inhbank_map, and we set the size at 0x3000 so setting bank 0 gives the ROM and setting bank 1 gives an offset of 0x3000 and accesses the inh_r/inh_w handlers.

Last edited by R. Belmont; 02/28/15 12:58 PM.
Matt Burke #98479 02/28/15 11:51 PM
Joined: Dec 2013
Posts: 4
Member
OP Offline
Member
Joined: Dec 2013
Posts: 4
Thanks. That seems to have fixed it:



CP/M seems to boot OK too:



Matt

Matt Burke #98480 03/01/15 12:08 AM
Joined: Jan 2012
Posts: 890
Likes: 17
C
Senior Member
Offline
Senior Member
C
Joined: Jan 2012
Posts: 890
Likes: 17
Very nice!

Matt Burke #98754 03/22/15 10:38 PM
Joined: Aug 2004
Posts: 1,458
Likes: 9
Very Senior Member
Offline
Very Senior Member
Joined: Aug 2004
Posts: 1,458
Likes: 9
Did anything come of this? Nothing's changed in MESS.

Matt Burke #98795 03/26/15 01:19 AM
Joined: Dec 2013
Posts: 4
Member
OP Offline
Member
Joined: Dec 2013
Posts: 4
Sorry, I haven't submitted it yet but I will shortly.

Whilst developing this I found that the 164196.bin ROM file was corrupt so I used an older ROM version I found on bitsavers. Since then I've made a new dump of the later version from my own iPDS.

Matt Burke #98797 03/26/15 03:09 AM
Joined: Aug 2004
Posts: 1,458
Likes: 9
Very Senior Member
Offline
Very Senior Member
Joined: Aug 2004
Posts: 1,458
Likes: 9
Ah, ok. I look forward to your submission. smile


Link Copied to Clipboard
Who's Online Now
3 members (Lord Nightmare, Reznor007, 1 invisible), 40 guests, and 1 robot.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,236
Posts120,923
Members5,061
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com