How to get a game to run automatically

4 replies [Last post]
Offline
Joined: Mar 26 2015
Posts: 6

How can I get a game to run automatically at startup instead of having a menu or typing BRUN?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Offline
Joined: Jun 15 2014
Posts: 305
Re: How to get a game to run automatically

It's easy. Write a single line HELLO (assuming this is the name of the DOS started program) BASIC program that starts your binary game. Or, almost anybody on this forum can do that for you if you attach here your .DSK image...

speedyG's picture
Offline
Joined: Nov 16 2011
Posts: 2377
Re: How to get a game to run automatically

Save the following file as "Hello" to the disk and make required changess to fit you needs:

10 D$ = CHR$ (4) REM CHR$ (4) = Ctrl-D

note at this point you must know if the game is Applesoft- or Integerbasic or binary
indicated by A, I or B in "catalog"-ing the file.
If the File is one of Basic the next line will look like this:

20 PRINT D$;"RUN GAME"

If the file is binary the next line will look like this:

20 PRINT D$;"BRUN GAME"

30 END

and besides: it´s not a bad idea to just read the DOS Manual:
http://mirrors.apple2.org.za/Apple%20II%20Documentation%20Project/Software/Operating%20Systems/Apple%20DOS/Manuals/
that explains this kind of stuff by examples...

sincerely speedyG

__________________

In early days I had a lot of money but no time - now I have no money but a lot of time....
the second part includes less friends but a lot more joy on life....

Offline
Joined: Feb 28 2015
Posts: 34
Re: How to get a game to run automatically

I will add one other possible point... if its Binary is it compiled AppleSoft? If it is, say something from TASC, you will have to modify the Hello program to something similar....

5 A$="FILENAME.BIN"
10 PRINT CHR$ (4) + "BLOADRUNTIME" + CHR$ (13) + CHR$ (4) + A$

(BLOAD "RUNTIME" <--- NAME OF COMPILE LIBRARY)

__________________

Tom Porter

Offline
Joined: Mar 26 2015
Posts: 6
Re: How to get a game to run automatically

Thanks for the replies, I do have "The DOS Manual" c 1980,81 version, so I got it out. I tried your line 10 SpeedyG and got an error, after referring to the manual I put a colon after the first "(4)". I ended up with:

NEW
10 D$ = CHR$ (4): REM CHR$(4) = CTRL-D
20 PRINT D$; "BRUN FROGGER"
30 END
INIT HELLO

then copied the game to the disk and it booted right up, Thanks guys!