Previous Thread
Next Thread
Print Thread
Page 4 of 5 1 2 3 4 5
Re: Problem with Coco emulation and cartslot [Re: Robert Gault] #64944 10/11/10 01:36 AM
Joined: Feb 2000
Posts: 207
T
tlindner Offline
Senior Member
Offline
Senior Member
T
Joined: Feb 2000
Posts: 207
cartslot.c seems to be where the pcb type of the ROM is matched against the available PCB types.

But the problem is the PCB type is never set. Nothing in cartslot.c will ask the hashfile for the PCB type.

I am a little stumped on how all this is suppose to work.


tim lindner
tlindner@macmess.org
Re: Problem with Coco emulation and cartslot [Re: tlindner] #64947 10/11/10 03:50 AM
Joined: Jan 2006
Posts: 3,687
etabeta78 Offline
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,687
being coco-specific, I would expect the code to be in coco_crt.c and image.extrainfo() being involved (since the latter is the function which accesses the hsi files, looking for info)

Re: Problem with Coco emulation and cartslot [Re: etabeta78] #64949 10/11/10 04:16 AM
Joined: Feb 2000
Posts: 207
T
tlindner Offline
Senior Member
Offline
Senior Member
T
Joined: Feb 2000
Posts: 207
I disagree, this seems to be a cartslot.c problem. On line 361 image.pcb() is called but always contains empty information.

Now if I add a image.crc(); call before line 361, the hash file is queried and everything starts working.

So either it is a bug for a device_image_interface object to be created without filling in the meta fields -or- it is a bug to query the meta information before forcing their loading.


tim lindner
tlindner@macmess.org
Re: Problem with Coco emulation and cartslot [Re: Robert Gault] #64952 10/11/10 05:17 AM
Joined: Feb 2000
Posts: 207
T
tlindner Offline
Senior Member
Offline
Senior Member
T
Joined: Feb 2000
Posts: 207
OK, I just test booting RGBDOS and it worked. Here is the patch:
Code:
--- src/mess/devices/cartslot.c	(revision 9357)
+++ src/mess/devices/cartslot.c	(working copy)
@@ -358,6 +358,7 @@
 			if (image.pcb() != NULL)
 			{
 				/* read from hash file */
+				image.crc();
 				astring_cpyc(&pcb_name, image.pcb());
 			}
 		}

I also added the following to the hsi file
Code:
--- hash/coco.hsi	(revision 9357)
+++ hash/coco.hsi	(working copy)
@@ -518,6 +518,9 @@
   <hash crc32="7f0edf28" sha1="6ca61e29c136ec8201492ca7f9eb050912f3582d" name="Extended ADOS">
     <pcb>coco_fdc</pcb>
   </hash>
+  <hash crc32="bdd25664" name="RGBDOS">
+    <pcb>coco_fdc</pcb>
+  </hash>
   <hash crc32="d990e1f9" name="RS-232 Pak">
     <pcb>rs232</pcb>
   </hash>

I'm not sure if this if the final patch, hopefully someone who knows will get back to me about my question in the previous message.


tim lindner
tlindner@macmess.org
Re: Problem with Coco emulation and cartslot [Re: tlindner] #64956 10/11/10 02:03 PM
Joined: Dec 2007
Posts: 301
R
Robert Gault Offline OP
Senior Member
OP Offline
Senior Member
R
Joined: Dec 2007
Posts: 301
Tim,

Your correction to src/mess/devices/cartslot.c works for me. I have been able to get floppy I/O and realtime clock I/O with RGBDOS. I have also been able to mount both ADOS3 and Extended ADOS3 and get disk I/O.

One point that should be given consideration. There will be many custom versions of ADOS because you can generate custom versions of the ROM as part of the software. There are also at least two versions of RGBDOS on the web which differ in the masks for the $FF40 disk values.
That means the CRC32 and SHA1 values will be different for all of these versions. Mounting these roms in the cartslot will fail with the .hsi file containing incorrect CRC values. Therefore all MESS coco users should determine the appropriate CRCs and customize the coco.hsi file.

I have not yet tested the RS-232 pak or the Speech/Sound pak but will report later on these two units.

Re: Problem with Coco emulation and cartslot [Re: Robert Gault] #64957 10/11/10 02:17 PM
Joined: Feb 2000
Posts: 207
T
tlindner Offline
Senior Member
Offline
Senior Member
T
Joined: Feb 2000
Posts: 207
Don't bother with the S/SC. It is completely commented out.


tim lindner
tlindner@macmess.org
Re: Problem with Coco emulation and cartslot [Re: tlindner] #64958 10/11/10 05:57 PM
Joined: Dec 2007
Posts: 301
R
Robert Gault Offline OP
Senior Member
OP Offline
Senior Member
R
Joined: Dec 2007
Posts: 301
I'm not sure what to expect from the RS232.ROM. It will boot in the cartslot but I can't communicate with a Coco3 running Ultimaterm over a serial cable regardless of settings.

Will the ROM actually connect to a PC serial port or is that portion of the code not working?

Re: Problem with Coco emulation and cartslot [Re: Robert Gault] #64962 10/12/10 12:19 AM
Joined: Dec 1999
Posts: 1,173
J
Justin Offline
Very Senior Member
Offline
Very Senior Member
J
Joined: Dec 1999
Posts: 1,173
MESS has no ability to interface with physical serial ports.

Re: Problem with Coco emulation and cartslot [Re: Justin] #64980 10/12/10 10:30 PM
Joined: Feb 2000
Posts: 207
T
tlindner Offline
Senior Member
Offline
Senior Member
T
Joined: Feb 2000
Posts: 207
Has any one had any luck using SDLMESS with named pipes (fifos) on *nix? I couldn't find a terminal program that allowed I/O thru a named pipe. I tried screen and cu, but they only wanted to talk thru something in /dev.

If I can get that working, then it is a small jump to use and named pipe and netcat.


tim lindner
tlindner@macmess.org
Re: Problem with Coco emulation and cartslot [Re: tlindner] #64982 10/12/10 11:30 PM
Joined: Mar 2001
Posts: 16,273
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,273
I think the SDL OSD uses a named pipe in /tmp to route the MAME outputs (e.g. cabinet lamps and stuff - on Windows it uses window messages). There's no support on anything for routing serial or parallel ports out of MESS that I'm aware of.

Page 4 of 5 1 2 3 4 5

Who's Online Now
2 registered members (robcfg, mixmaster), 83 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,673
Posts113,788
Members4,852
Most Online418
Aug 14th, 2019
Powered by UBB.threads™ PHP Forum Software 7.7.3