Harry Potter Posted September 2, 2017 Share Posted September 2, 2017 I want to start programming the Atari and need to be able to import an Atari executable to a disk image on a Win10/64 system and run it in an emulator. I have MakeATR and some experience with the Windows Registry if they're necessary. What's the fastest way to do this? Quote Link to comment Share on other sites More sharing options...
Wrathchild Posted September 2, 2017 Share Posted September 2, 2017 If you are running Altirra then you can drag/drop files into an ATR image using the Disk Explorer on the Tools menu. Your program doesn't need a 'prg' extension, most compilers/assemblers will let you name the output file and so best to use 'xex' for a binary load file or 'rom' for a cartridge image. Those are typically associated with the emulator and so just launching them will run them without having to go via an ATR image. Quote Link to comment Share on other sites More sharing options...
Harry Potter Posted September 2, 2017 Author Share Posted September 2, 2017 I thank you for your info, but I'd really like to do it from a batch file. Quote Link to comment Share on other sites More sharing options...
Wrathchild Posted September 2, 2017 Share Posted September 2, 2017 Nothing to stop you using a batch file, e.g I often do the same: @del *.xex d:\utils\compilers\ASM\MADS\mads demo.asm -o:demo.xex -c -t:demo.lbl That can be extended to check the xex exists and if so launch the emulator. A more 'clean' suggestion for you would be to try out the WUDSN environment which others here would advocate. Quote Link to comment Share on other sites More sharing options...
Harry Potter Posted September 2, 2017 Author Share Posted September 2, 2017 What I meant by "using a batch file" is adding a .xex file to an Atari disk image from a batch file. Quote Link to comment Share on other sites More sharing options...
Wrathchild Posted September 2, 2017 Share Posted September 2, 2017 (edited) I've questioned why you think you need to use a disk image? Can you elaborate on your use-case? Are there other 'resources' on there you'll want to access, e.g. graphics or data files, a DOS so that your program can load and save files? An executable binary more often than not is used as it can chain segments together and load them to wherever you want but also can run code in-between sections, e.g. to relocate data to memory under the O/S. Edited September 2, 2017 by Wrathchild Quote Link to comment Share on other sites More sharing options...
Harry Potter Posted September 3, 2017 Author Share Posted September 3, 2017 You're right. For now, I don't need to use disk images. So, forget about this thread--for now. Quote Link to comment Share on other sites More sharing options...
baktra Posted September 3, 2017 Share Posted September 3, 2017 (edited) You're right. For now, I don't need to use disk images. So, forget about this thread--for now. What you need is the dir2atr utility. It always creates a new disk image, but if you keep all files that you need to be in the disk image in one directory, it is very convenient. Edited September 3, 2017 by baktra Quote Link to comment Share on other sites More sharing options...
Harry Potter Posted September 3, 2017 Author Share Posted September 3, 2017 Thanks! Quote Link to comment Share on other sites More sharing options...
+JAC! Posted September 3, 2017 Share Posted September 3, 2017 Download with example script and Linux build is available here: https://www.wudsn.com/index.php/ide/faq#FAQDiskImages 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.