How to get a game to run automatically

5 posts / 0 new
Last post
Offline
Last seen: 8 years 11 months ago
Joined: Mar 25 2015 - 22:05
Posts: 6
How to get a game to run automatically

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

Offline
Last seen: 8 years 3 months ago
Joined: Jun 15 2014 - 12:48
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
Last seen: 4 years 10 months ago
Joined: Nov 16 2011 - 07:45
Posts: 2493
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

Offline
Last seen: 8 years 3 weeks ago
Joined: Feb 27 2015 - 23:22
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)

Offline
Last seen: 8 years 11 months ago
Joined: Mar 25 2015 - 22:05
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!

Log in or register to post comments