Previous Thread
Next Thread
Print Thread
Page 3 of 3 1 2 3
Re: Need help creating a new ISA slot device [Re: Darkstar] #76488 01/24/12 03:07 PM
Joined: May 2009
Posts: 1,829
J
Just Desserts Offline
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 1,829
Originally Posted By Darkstar
A Teensy++. Was lying around here for a few weeks now, I didn't have any idea what to do with it.


Ahaha, I knew it looked like one of those little buggers! I used a Teensy 2.0 a few months ago to reverse-engineer the I2C comms that DJ Hero turntables use, then made a USB HID reader for two turntables using it. smile

Re: Need help creating a new ISA slot device [Re: Just Desserts] #76498 01/24/12 10:11 PM
Joined: Apr 2005
Posts: 559
Darkstar Offline OP
Senior Member
OP Offline
Senior Member
Joined: Apr 2005
Posts: 559
Hmm.. I think I broke something.
As soon as I added the address map and the ROM for the Z80 CPU, the card BIOS does not come up anymore. In the debugger I still see the ROM at 0xdc000 but it gets ignored.

http://pastebin.com/nHudw5jH

Any ideas? Probably it's a very stupid typo somewhere, but I don't see it...

-Darkstar

Re: Need help creating a new ISA slot device [Re: Darkstar] #76512 01/25/12 09:50 PM
Joined: Apr 2005
Posts: 559
Darkstar Offline OP
Senior Member
OP Offline
Senior Member
Joined: Apr 2005
Posts: 559
Hmm.. I don't think I understand how to do slot devices correctly. First it was working, then I added the memory map for the onboard Z80, now I can't get it to work anymore, even with recent SVN.

Here's the stub driver and the ROMs:
http://www.regengedanken.de/~mdrueing/files/aha1542.zip

Maybe someone could test it and maybe tell me why it won't display the Adaptec BIOS anymore, even though the debugger shows that the ROM is correctly mapped at 0xdc000. With recent SVN it even crashes when I try to launch mess with "-isa4 aha1542" (although that might be related to the recent ISA slot changes)

-Darkstar

Re: Need help creating a new ISA slot device [Re: Darkstar] #76532 01/26/12 09:13 PM
Joined: Apr 2005
Posts: 559
Darkstar Offline OP
Senior Member
OP Offline
Senior Member
Joined: Apr 2005
Posts: 559
Looks like I picked a bad time for my first tests with MESS... after every "svn up", everything breaks in ever more fancy ways...

*sigh*

guess I'll have to let development settle a bit first

-Darkstar

Re: Need help creating a new ISA slot device [Re: Darkstar] #76533 01/26/12 09:23 PM
Joined: Apr 2004
Posts: 1,554
J
judge Online Content
Very Senior Member
Online Content
Very Senior Member
J
Joined: Apr 2004
Posts: 1,554
isa devices should be compiling and working ok. I just tested and committed my own little isa implementation (cga).

Re: Need help creating a new ISA slot device [Re: judge] #76535 01/26/12 09:37 PM
Joined: Apr 2005
Posts: 559
Darkstar Offline OP
Senior Member
OP Offline
Senior Member
Joined: Apr 2005
Posts: 559
Well at least some of the cards crash:
Code:
d:\Devel\mess>mess at386 -isa1 mda

-----------------------------------------------------
Exception at EIP=0185FDB3 (palette_entry_set_color(_palette_t*, unsigned int, un
signed int)+0x0009): ACCESS VIOLATION
While attempting to read memory at 00000004
-----------------------------------------------------
EAX=00000000 EBX=0028E828 ECX=00000000 EDX=00000000
ESI=0028E99C EDI=0028E8DC EBP=0028E788 ESP=0028E760
-----------------------------------------------------
Stack crawl:
  0028E788: 0185FDB3 (palette_entry_set_color(_palette_t*, unsigned int, unsigned int)+0x0009)
  0028E7B8: 009D214C (palette_set_color_rgb(running_machine&, unsigned int, unsigned char, unsigned char, unsigned char)+0x0054)
  0028E8A8: 009D2C02 (isa8_mda_device::device_start()+0x0306)
  0028E968: 0153F748 (device_t::start()+0x013e)
  0028EA08: 01544E2C (running_machine::start_all_devices()+0x0104)
  0028EC58: 01542F69 (running_machine::start()+0x0b8d)
  0028ED58: 015435E7 (running_machine::run(bool)+0x0319)
  0028F8F8: 01511D43 (mame_execute(emu_options&, osd_interface&)+0x0290)
  0028FB88: 017146A9 (cli_frontend::execute(int, char**)+0x08b9)
  0028FE98: 00F8EE34 (utf8_main(int, char**)+0x01c4)
  0028FEC8: 01916722 (wmain+0x008a)
  0028FF88: 00401422 (__tmainCRTStartup+0x0292)
  0028FF94: 7623339A (BaseThreadInitThunk+0x0012)
  0028FFD4: 77E69EF2 (RtlInitializeExceptionChain+0x0063)
  0028FFEC: 77E69EC5 (RtlInitializeExceptionChain+0x0036)


My AHA1542 crashes differently, although the same code worked (as in "did not crash", not as in "did the right thing") a few revisions back
Code:
d:\Devel\mess>mess at386 -isa1 aha1542

-----------------------------------------------------
Exception at EIP=01D4B6EA (device_t::next() const+0x0006): ACCESS VIOLATION
While attempting to read memory at 000000E4
-----------------------------------------------------
EAX=00000000 EBX=0000000B ECX=00000061 EDX=00000001
ESI=01E3B3B6 EDI=13E91230 EBP=0028EAD8 ESP=0028EAD8
-----------------------------------------------------
Stack crawl:
  0028EAD8: 01D4B6EA (device_t::next() const+0x0006)
  0028EB08: 01B5A8E4 (device_iterator::next()+0x006c)
  0028EB38: 01CCCC5A (device_interface_iterator<device_execute_interface>::next()+0x0042)
  0028EC08: 016DAAC6 (game_info_astring(running_machine&, astring&)+0x00e8)
  0028EC58: 016D8EFB (ui_display_startup_screens(running_machine&, int, int)+0x0203)
  0028ED58: 01543641 (running_machine::run(bool)+0x0373)
  0028F8F8: 01511D43 (mame_execute(emu_options&, osd_interface&)+0x0290)
  0028FB88: 017146A9 (cli_frontend::execute(int, char**)+0x08b9)
  0028FE98: 00F8EE34 (utf8_main(int, char**)+0x01c4)
  0028FEC8: 01916722 (wmain+0x008a)
  0028FF88: 00401422 (__tmainCRTStartup+0x0292)
  0028FF94: 7623339A (BaseThreadInitThunk+0x0012)
  0028FFD4: 77E69EF2 (RtlInitializeExceptionChain+0x0063)
  0028FFEC: 77E69EC5 (RtlInitializeExceptionChain+0x0036)

Re: Need help creating a new ISA slot device [Re: Darkstar] #103471 01/03/16 08:43 PM
Joined: Sep 2013
Posts: 20
T
TheCollector1995 Offline
Member
Offline
Member
T
Joined: Sep 2013
Posts: 20
Not to bump this thread but this may be something useful (though not for the CF/CP models): http://files.mpoli.fi/hardware/HDD/ADAPTEC/154XA.ZIP

Page 3 of 3 1 2 3

Who's Online Now
3 registered members (Olivier Galibert, Yash Anand, 1 invisible), 144 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,734
Posts114,829
Members4,879
Most Online890
Jan 17th, 2020
Powered by UBB.threads™ PHP Forum Software 7.7.3