|
|
Joined: Nov 2003
Posts: 186 Likes: 1
Senior Member
|
OP
Senior Member
Joined: Nov 2003
Posts: 186 Likes: 1 |
Hi all,
Can anyone tell me if the 80186 CPU emulation also emulates the built in periperal chips such as the DMA controler, timer/counter and address select unit ?
Or does it only emulate the processor core ?
Cheers,
Phill.
|
|
|
|
Joined: Aug 2009
Posts: 1,148 Likes: 12
Very Senior Member
|
Very Senior Member
Joined: Aug 2009
Posts: 1,148 Likes: 12 |
No, it emulates just the processor core, and iirc the version you are referring to is the AM186-EM / AM188-EM?
|
|
|
|
Joined: Dec 2004
Posts: 111
Senior Member
|
Senior Member
Joined: Dec 2004
Posts: 111 |
The peripherals were part of the original Intel 80186.
|
|
|
|
Joined: Sep 2004
Posts: 392 Likes: 4
Senior Member
|
Senior Member
Joined: Sep 2004
Posts: 392 Likes: 4 |
A good chunk of the peripherals are implemented in mame/audio/leland.c. Using that as a starting point would be a good idea.
|
|
|
|
Joined: Nov 2003
Posts: 186 Likes: 1
Senior Member
|
OP
Senior Member
Joined: Nov 2003
Posts: 186 Likes: 1 |
A good chunk of the peripherals are implemented in mame/audio/leland.c. Using that as a starting point would be a good idea. That code looks very like the code in the mess compis driver, which I saw after posting my original query. I used that as a base. I'm trying to reverse engineer the RM Nimbus 186 based PC, unfortunatly I don't have any documentation for the hardware, fortunatly I do have 2 working machines  Cheers, Phill.
|
|
|
|
Joined: Mar 2005
Posts: 502
Senior Member
|
Senior Member
Joined: Mar 2005
Posts: 502 |
Awesome! I've actually been looking for an RM Nimbus to dump the roms from as I used many when I was at school. They are kinda PC compatible but not fully, I remember them running a version of windows 3.1 for workgroups, a port of access and some RM logo app. I guess I can call off the search now, thanks 
|
|
|
|
Joined: Aug 2007
Posts: 26
Member
|
Member
Joined: Aug 2007
Posts: 26 |
A good chunk of the peripherals are implemented in mame/audio/leland.c. Using that as a starting point would be a good idea. That code looks very like the code in the mess compis driver, which I saw after posting my original query. I used that as a base. Yes, the code was copied from the leland driver. However, it should have been cleaned up and also separated to a 186/188 module.
|
|
|
|
Joined: Nov 2003
Posts: 186 Likes: 1
Senior Member
|
OP
Senior Member
Joined: Nov 2003
Posts: 186 Likes: 1 |
A good chunk of the peripherals are implemented in mame/audio/leland.c. Using that as a starting point would be a good idea. That code looks very like the code in the mess compis driver, which I saw after posting my original query. I used that as a base. Yes, the code was copied from the leland driver. However, it should have been cleaned up and also separated to a 186/188 module. ***AND*** It should have meaningfull variable names in update_interrupt_state and handle_eoi for example, using i and j for the loops only serves to obscure the function of the code where something like priority and int_no would make much more sense. Cheers. Phill.
|
|
|
|
Joined: Sep 2004
Posts: 392 Likes: 4
Senior Member
|
Senior Member
Joined: Sep 2004
Posts: 392 Likes: 4 |
Feel free to fix it. I defer to your superior coding style.
|
|
|
|
Joined: Nov 2003
Posts: 186 Likes: 1
Senior Member
|
OP
Senior Member
Joined: Nov 2003
Posts: 186 Likes: 1 |
Feel free to fix it. I defer to your superior coding style. I have in the rm driver  Phill.
|
|
|
1 members (Vas Crabb),
20
guests, and
0
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
Forums9
Topics9,086
Posts119,088
Members5,014
|
Most Online890 Jan 17th, 2020
|
|
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!
|
|
|
|
|