DOS - device not present LOAD - OK ?

Get technical support from the community & developers with specific X16 programs if you can't find the solution elsewhere
(for general non-support related chat about programs please comment directly under the program in the software library)
Post Reply
Larry Serflaten
Posts: 9
Joined: Thu Nov 26, 2020 3:43 pm

DOS - device not present LOAD - OK ?

Post by Larry Serflaten »


Recently installed emulator (r38) on Win7.  I can load programs (.BAS, .PRG) but using the DOS command returns an error.  As does DOS"$" The command DOS"8" returns READY but the others still error.  Any suggestions what might fix the problem?

User avatar
desertfish
Posts: 1095
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

DOS - device not present LOAD - OK ?

Post by desertfish »


I think you have to start the emulator with an sd-card image mounted for those to work.

Larry Serflaten
Posts: 9
Joined: Thu Nov 26, 2020 3:43 pm

DOS - device not present LOAD - OK ?

Post by Larry Serflaten »


Thanks, trying to get up to speed quickly I did not see mention of the sdcard startup switch in the CX16 Programmer's Guide (DOS section) and thought the command should have worked as stated.  The README file has that info...

I am finding stand alone BAS and PRG files will load and run, but PRG files that use external (BIN) files do not work as expected.  I have them in a subdirectory under the CX16 directory.  Do you know if those programs need to be on a card image (mounted drive) to work properly? 

Ender
Posts: 220
Joined: Sat May 09, 2020 9:32 pm

DOS - device not present LOAD - OK ?

Post by Ender »



2 hours ago, Larry Serflaten said:




Thanks, trying to get up to speed quickly I did not see mention of the sdcard startup switch in the CX16 Programmer's Guide (DOS section) and thought the command should have worked as stated.  The README file has that info...



I am finding stand alone BAS and PRG files will load and run, but PRG files that use external (BIN) files do not work as expected.  I have them in a subdirectory under the CX16 directory.  Do you know if those programs need to be on a card image (mounted drive) to work properly? 



All files either have to be in the same directory as emulator executable, or you run from within the directory of the program/bin files and call the emulator in its home area, like "..\..\x16emu.exe -prg blah.prg"  I think it's the same deal if you have them in a SD card image, but it sounds like you probably just want to run them from the host file system.

Larry Serflaten
Posts: 9
Joined: Thu Nov 26, 2020 3:43 pm

DOS - device not present LOAD - OK ?

Post by Larry Serflaten »


Thanks for your reply.  Its been years since I attempted using the command line so it took about an hour to get the right combination of switches and parameters.  I kept adding ,8 for the load_addr option thinking it was LOADing the file.

With all the BRIXX files extracted to a files/brix/ folder I would open a command window to that folder and try:  ..\..\x16emu brixx.prg, 8  All I got was the emulator switches list in the console window.  

For those looking for an easy solution, what I got working was a PLAY.BAT file in the same folder as all the extracted BRIXX files. Then in that batch file I have a one line command: ..\..\x16emu -prg BRIXX.PRG 

Launching (double clicking) that PLAY.BAT file sets the proper directory and loads the game into the emulator.  Then in the emulator, typing RUN will run the program.  I could not get the -run switch to work from the batch file, but this will suffice, rather than working in the console window!  Thanks again!

 

 

Ed Minchau
Posts: 503
Joined: Sat Jul 11, 2020 3:30 pm

DOS - device not present LOAD - OK ?

Post by Ed Minchau »


I tried mounting the image file; Windows gave me an error message: "The disk image file is corrupted".

Post Reply