How can I get a game to run automatically at startup instead of having a menu or typing BRUN?
Anonymous
User login
Please support the defense of Ukraine.
Direct or via Unclutter App
Active forum topics
Recent content
Navigation
No Ads.
No Trackers.
No Social Media.
All Content Locally Hosted.
Built on Free Software.
We have complied with zero government requests for information.
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...
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
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)
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!