Oricutron and disk images

Comments, problems, suggestions about Oric emulators (Euphoric, Mess, Amoric, etc...) it's the right place to ask. And don't hesitate to give your tips and tricks that help using these emulations in the best possible way on your favorite operating system.
applepie
Officer Cadet
Posts: 45
Joined: Thu Dec 15, 2022 4:53 pm

Oricutron and disk images

Post by applepie »

Hi all ! I certainly missed something, but I can't find a way to load and run a .dsk image with Oricutron

I'm using this one : https://forum.defence-force.org/viewtop ... 981#p27981

I don't know if it's a jasmin or microdisc image (if that matters) so I tried :

Code: Select all

oricutron -m atmos -k microdisc -d disks/ge.dsk 
which ends crashing

Code: Select all

oricutron -m atmos -k jasmin -d disks/ge.dsk
where I see the basic prompt then a "Booting TDOS" that stays forever
User avatar
Dbug
Site Admin
Posts: 4444
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Oricutron and disk images

Post by Dbug »

If I launch by either drag'n dropping GoogleEarth.dsk on Oricutron, or from the command line with "oricutron.exe GoogleEarth.dsk" it just works.
Seems to work fine with "-m atmos -k microdisc -d GoogleEarth.dsk" as well.

Which version of Oricutron are you using, on which operating system?
applepie
Officer Cadet
Posts: 45
Joined: Thu Dec 15, 2022 4:53 pm

Re: Oricutron and disk images

Post by applepie »

Thats

Code: Select all

Oricutron 1.2.0 (c)2019 Peter Gordon (pete@gordon.plus)
On macOS 10.15.7 (catalina)

Edit : I tried with a random disk image from https://www.planetemu.net/roms/tangerin ... doric-disk (Amnukhor)
And when booting I get a flashing red message "WARNING DOS IS ALTERED"
User avatar
Dbug
Site Admin
Posts: 4444
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Oricutron and disk images

Post by Dbug »

User avatar
iss
Wing Commander
Posts: 1641
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Oricutron and disk images

Post by iss »

applepie wrote: Mon Jan 30, 2023 7:00 pm...On macOS 10.15.7 (catalina)
Try the newer version Oricutron for developers.
applepie
Officer Cadet
Posts: 45
Joined: Thu Dec 15, 2022 4:53 pm

Re: Oricutron and disk images

Post by applepie »

Forgot to Say that I'm using a git cloned version of oricutron (5/6 weeks old), that could be the cause. Not in front on my mac mac for now but will check tomorrow both with the DSK image provided by dbug and with the iss dev version...
User avatar
iss
Wing Commander
Posts: 1641
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Oricutron and disk images

Post by iss »

applepie wrote: Mon Jan 30, 2023 7:00 pm And when booting I get a flashing red message "WARNING DOS IS ALTERED"
This message is normal and it means that disk is not system (i.e. not bootable) one.
applepie
Officer Cadet
Posts: 45
Joined: Thu Dec 15, 2022 4:53 pm

Re: Oricutron and disk images

Post by applepie »

Ok, stupid me !!
I already reported this bug and of course the same problem occurs with disks images : https://github.com/pete-gordon/oricutron/issues/188

That being said, google troll and space1999 boot fine, but Ammnukor or Tyrann does not
Dunno if they are valid disk images but they seem to :

Code: Select all

00000000: 4d46 4d5f 4449 534b 0100 0000 2800 0000  MFM_DISK....(...
00000010: 0100 0000 0000 0000 0000 0000 0000 0000  ................
00000020: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000030: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000040: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000050: 0000 0000 0000 0000 0000 0000 0000 0000  ................
User avatar
Symoon
Archivist
Posts: 2307
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France

Re: Oricutron and disk images

Post by Symoon »

I downloaded the 1st disk of the list and it boots fine with Euphoric.
These are the working disks from Norsoft company, that we transfered 24 years ago, scattered and without the few docs that went with them. But the disk does boot.
applepie
Officer Cadet
Posts: 45
Joined: Thu Dec 15, 2022 4:53 pm

Re: Oricutron and disk images

Post by applepie »

Yes, got it ;-) For Tyrann and others I need to type commands like LOAD "foo", that's not autoboot/autorun

Never used a floppy drive on Atmos back in the days ;-) So...
User avatar
Dbug
Site Admin
Posts: 4444
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Oricutron and disk images

Post by Dbug »

On this topic, Dom is asking a number of things which I happen to not know about!
- Is it possible to enable/disable the write protection on a .DSK in Oricutron?
- Is it possible to create a "virgin" disk and format it, from inside Oricutron?
- It's possible to select a floppy for each of the ABCD drives, but is it possible to eject them?

Basically he is trying to harden the floppy code of his latest game, and I'll be interested in the answers for my own game so I can test things like write errors.

I tried to write protect the .DSK, I got a "Save failed" in Oricutron, but the SAVE"TEST.BAS" I made still appeared when I did a DIR"*.BAS" so I guess that was just a windows error message, the Oric itself did not detect the problem (Sedoric did not complain at least)
mmu_man
Flight Lieutenant
Posts: 322
Joined: Thu Sep 21, 2006 7:45 pm
Location: 26000 Valence, FRANCE
Contact:

Re: Oricutron and disk images

Post by mmu_man »

Seems the WSF_WRPROT flag is defined in disk.h but not used, I guess you can send a patch :-)
User avatar
iss
Wing Commander
Posts: 1641
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Oricutron and disk images

Post by iss »

mmu_man wrote: Thu Aug 24, 2023 7:55 pm Seems the WSF_WRPROT flag is defined in disk.h but not used, I guess you can send a patch :-)
Indeed! There is no "write protect" and "eject" related functionality.
User avatar
Dbug
Site Admin
Posts: 4444
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Oricutron and disk images

Post by Dbug »

I wonder if it would be easy to hack in the menu by having like if you select "Insert disk..." but you press SHIFT or CONTROL or ALT, then you get something different:
- Insert disk
- Eject disk
- Toggle write protect
image_2023-08-25_083220884.png
These options are rarely useful for users, but for developers who want to test that their programs behave properly, that would be nice :)
User avatar
Dom
Flying Officer
Posts: 141
Joined: Sun Nov 25, 2012 7:00 pm

Re: Oricutron and disk images

Post by Dom »

I think I have found a way to solve my problem, bypassing the impossibility of inserting a protected disk into the drive.
I make SEDORIC believes that the disc is protected by "manually" forcing the variable $C017 to $40 just before the output test of the disc write routine in $CFE5.
for that, in the oricutron debugger, you must first put a breakpoint: bs $CFE5, return to the game and try to save a file, the debugger opens, type mm$ C017 $40 then exit the debugger to check if your disk error handling routine is giving the expected results

Code: Select all

The end of the code of the SEDORIC XRWTS routine, extracted from SEDORIC a NU by André C

CFE3	LDA #FF		mask for C017 test
CFE5	BIT C017	set Z,N and V 
CFE8	RTS
ref.
P 12 SEDORIC A NU : C017 - 00 ________ I/O error code
In the Annex 11 page 108 of the MICRODIC and SEDORIC users manual one can read
#FFC4 XRWTS : Access to the drive management routine.... Output Z=1 if no error, Z=0 otherwise. V=1 if the diskette is write-protected.

V being the bit 6 of the status register, the BIT instruction between #FF and the value #40 set this bit to 1.

I tested this method.... It works :) (and my I/O error handling works too :) :))
Post Reply