CosmosEx and 520 STm - Flipo Demo HDD

News, questions and bugs reports about CosmosEx by Jookie. Now we have a Raspberry Pi in our machines!

Moderators: Jookie, Moderator Team

User avatar
Cyprian
Atari God
Atari God
Posts: 1404
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

CosmosEx and 520 STm - Flipo Demo HDD

Postby Cyprian » Sun Jan 10, 2016 8:50 pm

sorry for crossposting but I'm not sure if that issue is casued by the demo or CosmosEx.
Original topic: viewtopic.php?f=28&t=29127&p=286873#p286873
Cyprian wrote:Leonard,
unfortunately it doesn't work for me on my 520 STm 2MB.
I see different error messages:

Code: Select all

ERROR: No FLIPO-DEMO MSA file found in the current directory

and

Code: Select all

ERROR: Bad MSA file


I use CosmosEx ACSI and I see those error messages when I try to run demo from Shared drive (the first error message) and Translated drive (the second message)

Both drives have Flipo_HD.prg and FLIPO_P.MSA files.
Jaugar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Aranym / Steem / Saint
http://260ste.appspot.com/

User avatar
leonard
Moderator
Moderator
Posts: 640
Joined: Thu May 23, 2002 10:48 pm
Contact:

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby leonard » Sun Jan 10, 2016 11:29 pm

looks strange. first message means that the file itself is not found. (I use a findfirst with "flipo*.msa" to find either flipo.msa or flipo_p.msa)

the second case means that MSA file is not a flipo demo. The test is really basic, it just check MSA header to see if it's 2 sides, 10 sectors, 81 or 82 tracks disk.

I really don't know what happend. Are your files working good on emulator with HDD?
Leonard/OXYGENE.

User avatar
Cyprian
Atari God
Atari God
Posts: 1404
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby Cyprian » Sun Jan 10, 2016 11:46 pm

yes, those files work ok in Steem/Hatari
Jaugar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Aranym / Steem / Saint
http://260ste.appspot.com/

User avatar
leonard
Moderator
Moderator
Posts: 640
Joined: Thu May 23, 2002 10:48 pm
Contact:

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby leonard » Mon Jan 11, 2016 12:21 am

I can't debug it myself. I guess someone already runs the demo with cosmoex. What's the difference with your ST? what do you mean by "STm" ? Is it a STE?
Leonard/OXYGENE.

User avatar
Cyprian
Atari God
Atari God
Posts: 1404
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby Cyprian » Mon Jan 11, 2016 11:29 am

It is a short 520 ST without floppy and with TV modulator. It's ram was expanded to 2MB.

Maybe the problem lies in how CosmosEx manages MSA files (it has anice MSA floppy auto load mechanism).
I'll try to prepare test code with that findfirst function
Jaugar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Aranym / Steem / Saint
http://260ste.appspot.com/

User avatar
Cyprian
Atari God
Atari God
Posts: 1404
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby Cyprian » Mon Jan 11, 2016 1:28 pm

ok, Ive done a test and I see two problems.
First one, "ERROR: No FLIPO-DEMO MSA file found in the current directory" with Shared drive. I'll escalate that to Jookie because it seems that shared drive isn't stable;
- "ERROR: Bad MSA file" with Translated drive. My test with Fsetdta/Fsfirst and "flip*.bin" returns me valid file name "FLIPO_P.MSA". I've copied that file under TOS and compared it under Windows with your MSA file and they are binary the same.
My question is, how do you recognize whether MSA isn't correct?
Jaugar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Aranym / Steem / Saint
http://260ste.appspot.com/

User avatar
leonard
Moderator
Moderator
Posts: 640
Joined: Thu May 23, 2002 10:48 pm
Contact:

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby leonard » Mon Jan 11, 2016 4:38 pm

As I said in my previous post this is a basic check: just compare first values of MSA to ensure it's a 10 sectors, 2 sides, 81 or 82 cylinders. But if your MSA is working with emulator, the check is ok and your image is ok too :) that's why I don't understand.
The only way is to trace the code and look at which "cmp" goes to "bad MSA" code path.
Leonard/OXYGENE.

User avatar
Cyprian
Atari God
Atari God
Posts: 1404
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby Cyprian » Mon Jan 11, 2016 9:34 pm

sorry I was in the office in a hurry and just overlooked your answer.
Attached you can find my test program and also BIN file created by that program. BIN file was created on my 520ST and CosmosEx Translated Drive. On the same configuration Flipo_HD.prg shows "ERROR: Bad MSA file" message.
My program just copy the first 512 bytes of your MSA file to a new BIN file and also append to it 44 bytes of DTA buffer.
You do not have the required permissions to view the files attached to this post.
Jaugar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Aranym / Steem / Saint
http://260ste.appspot.com/

User avatar
leonard
Moderator
Moderator
Posts: 640
Joined: Thu May 23, 2002 10:48 pm
Contact:

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby leonard » Mon Jan 11, 2016 11:39 pm

ok your binary dump seems ok. I just do another check: when I decompress the MSA file (when I load it) I check that no tracks is bigger than 5120 bytes ( if bigger I display "bad msa" file). If any track is bigger than 5120bytes it's certainly because of bad MSA decompression

Are you aware of anyone having the same issue on cosmoex?
Leonard/OXYGENE.

User avatar
Cyprian
Atari God
Atari God
Posts: 1404
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby Cyprian » Tue Jan 12, 2016 3:46 pm

OK, will check it later.
In meantime my test program read 780523 bytes from FLIPO_P.MSA and saved to a new BIN file.
I compared MSA and BIN under Windows and both files were binary the same.

It seems that only me faced that issue
Jaugar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Aranym / Steem / Saint
http://260ste.appspot.com/

User avatar
Cyprian
Atari God
Atari God
Posts: 1404
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby Cyprian » Tue Jan 12, 2016 8:06 pm

There is something really strange.
I've added some debug code to your loader - Track number as character set, Track header in hex, Fseek in hex.
As we can see ST shows different Fseek values than Steem/Hatari.
The left side is from 520ST, the right side from Steem:
DTA_FOD.png
You do not have the required permissions to view the files attached to this post.
Jaugar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Aranym / Steem / Saint
http://260ste.appspot.com/

User avatar
Cyprian
Atari God
Atari God
Posts: 1404
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby Cyprian » Tue Jan 12, 2016 10:17 pm

I've just done the same test on my 1040 STE 4MB.
In case of CosmosEx I see "Bad MSA file" message and my debug output is exactly the same as in case of 520ST (the left side on a screenshot above).

I've checked also whether your demo works from USB Floppy emulator. I created MSA with your PRG, my debug PRG and FLIPO_P.MSA inside :) and demo started. Loading was a bit slow but demo was working flawlessly!

Current outcome is that issue is independent from machine type and memory size. It seems that there is something wrong with CosmosEx drivers.

BTW great demo.
Jaugar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Aranym / Steem / Saint
http://260ste.appspot.com/

User avatar
alexh
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2581
Joined: Wed Oct 20, 2004 1:52 pm
Location: UK - Oxford
Contact:

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby alexh » Wed Jan 13, 2016 1:44 pm

Cyprian wrote:As we can see ST shows different Fseek values than Steem/Hatari.

Isn't that just because it's a different hard drive?

User avatar
leonard
Moderator
Moderator
Posts: 640
Joined: Thu May 23, 2002 10:48 pm
Contact:

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby leonard » Wed Jan 13, 2016 3:03 pm

in your left log, almost all offsets are multiple of 256 ( $00 at the end ). this should not happen! ( right values are from the right log ). Maybe you should investigate on that. It's like cosmoex driver only reads multiple of 256 bytes?
Leonard/OXYGENE.

User avatar
Cyprian
Atari God
Atari God
Posts: 1404
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby Cyprian » Thu Jan 14, 2016 11:43 pm

Fseek returns values not correlated to real file position pointer.
FlipO problem is caused due to the fact that Fopen from time to time returns data from wrong file position pointer (one byte difference)
I created a new topic regarding Fopen/Fseek issue.
Jaugar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Aranym / Steem / Saint
http://260ste.appspot.com/

User avatar
Cyprian
Atari God
Atari God
Posts: 1404
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby Cyprian » Tue Feb 02, 2016 11:28 pm

fixed with the latest CosmosEx firmware.
Flip-O demo works ok now.
Jaugar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Aranym / Steem / Saint
http://260ste.appspot.com/

User avatar
leonard
Moderator
Moderator
Posts: 640
Joined: Thu May 23, 2002 10:48 pm
Contact:

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby leonard » Wed Feb 03, 2016 12:30 pm

Cyprian wrote:fixed with the latest CosmosEx firmware.
Flip-O demo works ok now.


enjoy good old flipo!
Leonard/OXYGENE.

User avatar
Cyprian
Atari God
Atari God
Posts: 1404
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby Cyprian » Wed Feb 03, 2016 12:39 pm

I watched it countless times :)
Jaugar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Aranym / Steem / Saint
http://260ste.appspot.com/

User avatar
Jookie
Hardware Guru
Hardware Guru
Posts: 1245
Joined: Wed Feb 04, 2004 6:54 pm
Location: Kosice, Slovakia
Contact:

Re: CosmosEx and 520 STm - Flipo Demo HDD

Postby Jookie » Wed Feb 03, 2016 12:51 pm

leonard wrote:enjoy good old flipo!


Cyprian wrote:I watched it countless times :)


Sounds like something I should also see ;) (once I switch from ST mono on LCD to ST low on TV)


Social Media

     

Return to “CosmosEx”

Who is online

Users browsing this forum: No registered users and 2 guests