Jump to content

Photo

atr without DOS start ?


6 replies to this topic

#1 funkheld OFFLINE  

funkheld

    Moonsweeper

  • 263 posts

Posted Thu Sep 13, 2018 6:54 AM

Hi good afternoon.
what does a diskette (atr) look like for Altirra without DOS?
I would like to load an XEX program on an ATR and start it automatically when inserting a diskette.
 
Thank you.
greeting


#2 phaeron OFFLINE  

phaeron

    River Patroller

  • 2,561 posts
  • Location:USA

Posted Thu Sep 13, 2018 9:49 PM

The OS boot loader can't load executables, it only loads a block of data. The first boot sector gives the load address and the total number of sectors to load. Single and enhanced density disks can load up to 32K. Double density disks can only load 384 bytes, so they need a two-stage boot. Your best bet is to use DOS or a mini-DOS and have it load your program as AUTORUN.SYS.



#3 baktra OFFLINE  

baktra

    Dragonstomper

  • 512 posts
  • Location:Czech republic

Posted Fri Sep 14, 2018 8:33 AM

If you don't mind a cross-platform solution, look here: http://www.horus.com/~hias/atari/

 

You are looking for dir2atr and Picoboot. The two tools can create an .atr image that contains a single binary load file (.xex) together with a special bootloader that loads and executes the binary load file. So you insert the disk, power-on the computer and the .xex file loads automatically. 

 

Provided that you installed the dir2atr tool, you can execute a simple batch file that will create your auto-starting disk

@ECHO OFF

REM Create directory with disk contents
mkdir disk_contents

REM Copy the xex file to the disk_contents directory
copy mygame.xex disk_contents\MYGAME.COM

REM Create bootable disk
dir2atr.exe -b PicoBoot405 720 "MyGameDisk.atr" disk_contents
pause


#4 funkheld OFFLINE  

funkheld

    Moonsweeper

  • Topic Starter
  • 263 posts

Posted Fri Sep 14, 2018 12:10 PM

hello, thanks for the help.

 

 

greeting.



#5 funkheld OFFLINE  

funkheld

    Moonsweeper

  • Topic Starter
  • 263 posts

Posted Fri Sep 14, 2018 2:17 PM


Your best bet is to use DOS or a mini-DOS and have it load your program as AUTORUN.SYS.

 

where is there a minidos please

 

greeting.



#6 baktra OFFLINE  

baktra

    Dragonstomper

  • 512 posts
  • Location:Czech republic

Posted Fri Sep 14, 2018 3:17 PM

"MiniDOS" is a general term. It denotes any miniature DOS that can just load a binary load file. PicoBoot is also one of the "MiniDOSes"

Try MICRODOS II

 

1. Prepare an ATR image with just your binary load file

2. Boot MICRODOS II from its disk image

3. Insert the image prepared in step 1

4. Enter information you are prompted for

5. MICRODOS II will write a boot loader to your disk image

 

Then you can boot from your disk image.



#7 funkheld OFFLINE  

funkheld

    Moonsweeper

  • Topic Starter
  • 263 posts

Posted Sat Sep 15, 2018 2:00 AM

hello, thanks.

 

greeting.






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users