Page 7 of 9
Re: Floppy emulator (SD card)
Posted: Fri Mar 21, 2014 3:56 pm
by IanJ
XorA wrote:Ian Can you do :-
Code: Select all
qltools QLA.HFE -d -w DUNGEON.BAS -d
Which should give you a directory listing before and afterwards.
It crashes qltools. I notice some other commands do that also.
Code: Select all
C:\Users\Ian\Desktop\qfe>qltools images\QLA.HFE -d -w files\C_BAS -d
Checking images\QLA.HFE
File loader found : HXC_HFE (SD Card HxCFE HFE file Loader)
Loading images\QLA.HFE
file loader found!
test
1233/1440 sectors.
-64
C:\Users\Ian\Desktop\qfe>
Re: Floppy emulator (SD card)
Posted: Fri Mar 21, 2014 4:06 pm
by XorA
Bugger, going to guess some of my changes broke things on windows!

Re: Floppy emulator (SD card)
Posted: Fri Mar 21, 2014 4:10 pm
by IanJ
XorA wrote:Bugger, going to guess some of my changes broke things on windows!

Just keep em coming, am happy to test.
Ian.
[also fae Scotland]
Re: Floppy emulator (SD card)
Posted: Fri Mar 21, 2014 4:22 pm
by XorA
Thats the issue, I don't have a windows machine setup for development, will have to see if I can get mingw to compile it successfully.
G
Re: Floppy emulator (SD card)
Posted: Fri Mar 21, 2014 4:32 pm
by XorA
Now hacked it up to compile in mingw32, and I see the same issue in the non HFE version. Some offset probably broken somewhere. Will need some time to track down the issue.
G
Re: Floppy emulator (SD card)
Posted: Fri Mar 21, 2014 5:07 pm
by XorA
Hi Ian,
Can you try the qltools.exe in the attached zipfile, it will not save correctly but should fix your other crashes.
The command I previously listed should work but won't save the result correctly.
Replace the qltools.exe you already have but keep libhxfe.dll
G
Re: Floppy emulator (SD card)
Posted: Fri Mar 21, 2014 5:28 pm
by IanJ
Error opening the image. I switched back to the original just to check and definitely this new one has an issue.
Code: Select all
C:\Users\Ian\Desktop\qfe>qltools QLA.HFE -d -w C_BAS -d
could not open image: No error
error : image file not opened
Usage: qltools dev -[options] [filename].................snip
Re: Floppy emulator (SD card)
Posted: Fri Mar 21, 2014 5:38 pm
by XorA
Are you sure you did not typo?
Code: Select all
C:\Users\graeme\Documents\hxcfe>qltools qlboot_img.hfe -d -w test_bas -d
qlboot
1116/1440 sectors.
boot 74 29/11/101 11:32:15 v1
ipcextuk_bin 5558 22/02/114 23:02:02 v1
kbdgen_bas 28747 22/02/114 23:02:05 v1
kbd_UK_bas 7428 22/02/114 23:02:06 v1
IPCEXTUK_ROM 5600 22/02/114 23:02:06 v1
unzip E 111158 22/02/114 23:13:55 v1 (51810)
qlboot
1113/1440 sectors.
boot 74 29/11/101 11:32:15 v1
ipcextuk_bin 5558 22/02/114 23:02:02 v1
kbdgen_bas 28747 22/02/114 23:02:05 v1
kbd_UK_bas 7428 22/02/114 23:02:06 v1
IPCEXTUK_ROM 5600 22/02/114 23:02:06 v1
unzip E 111158 22/02/114 23:13:55 v1 (51810)
test_bas 31 21/03/114 17:38:13 v0
Re: Floppy emulator (SD card)
Posted: Fri Mar 21, 2014 5:57 pm
by IanJ
qltoolsorg.exe
qltoolsnew.exe
PS. the new exe is 138k, the original is 68k size if it's any interest.
I renamed the exe's this time so could run one after another:-
Code: Select all
C:\Users\Ian\Desktop\qfe>qltoolsorg QLA.HFE -d -w C_BAS -d
Checking QLA.HFE
File loader found : HXC_HFE (SD Card HxCFE HFE file Loader)
Loading QLA.HFE
file loader found!
test
1233/1440 sectors.
-64
C:\Users\Ian\Desktop\qfe>
C:\Users\Ian\Desktop\qfe>
C:\Users\Ian\Desktop\qfe>
C:\Users\Ian\Desktop\qfe>qltoolsnew QLA.HFE -d -w C_BAS -d
could not open image: No error
error : image file not opened
Usage: qltools dev -[options] [filename]
options:
-d list directory -s list int16_t directory
-i list info -m list disk map
-c list conversion table -l list files on write
-w <files> write files (query) -W <files> (over)write files
-r <name> remove file <name> -n <flle> copy <file> to stdout
-uN ASCII dump cluster N -UN binary dump
-M <name> Make level 2 directory <name>
-x <name> <size> make <name> executable with dataspace <size>
-fxx <name> format as xx=hd|dd disk with label <name>
QLTOOLS for Linux (version 2.14, Mar 21 2014)
dev is either a file with the image of a QL format disk
or a floppy drive with a SMS/QDOS disk inserted in it (e.g. diskimage)
by Giuseppe Zanetti,Valenti Omar,Richard Zidlicky & Jonathan Hudson
C:\Users\Ian\Desktop\qfe>
Re: Floppy emulator (SD card)
Posted: Fri Mar 21, 2014 6:20 pm
by XorA
Yeah new exe is non optimised and probably with some debugging info.
One thing I have noticed is I really need to add some error checking, typoing the image here crashes badly
