DOS3.3 worth it?

29 posts / 0 new
Last post
Offline
Last seen: 4 days 12 hours ago
Joined: Nov 12 2022 - 16:50
Posts: 128
DOS3.3 worth it?

Hi!  As you probably already know, I am working on some text advemture code for different cc65 targets, including the Apple2enh.  I want to port it to the regular Apple2, also, and DOS 3.3.  I think that would be a usable platform, as I should have 48k RAM and think DOS 3.3 uses less RAM than ProDOS.  I have the Beneath Apple DOS etext, but it is too technical and doesn't describe how to use DOS from assembler.  Should I persue using DOS 3.3 for a text adventure?  If so, what book should I download?  I have access to an asimov mirror site.

Online
Last seen: 1 hour 55 min ago
Joined: Jul 5 2018 - 09:44
Posts: 1518
If you are looking for an

If you are looking for an extensive selection of e-books try here:

 

https://commodore.bombjack.org/apple/apple-books.htm

 

Rather than looking for a DOS 3.3 book for assembler info, try looking at assembler books that cover DOS 3.3 like "Assembly Language Programing for the Apple II" by Robert Mottola or "Assembly Lines: The Book" by Roger Wagner.

 

Those are two pretty good books, and there are several others on there worth a read.

 

Offline
Last seen: 4 days 12 hours ago
Joined: Nov 12 2022 - 16:50
Posts: 128
I got the information I

I got the information I wanted.  Thank you.  BTW, should I make an API for cc65 to Apple DOS 3.3?  I have ProDOSi for ProDOS.

Online
Last seen: 1 hour 55 min ago
Joined: Jul 5 2018 - 09:44
Posts: 1518
Harry Potter wrote:I got the
Harry Potter wrote:

I got the information I wanted.  Thank you.  BTW, should I make an API for cc65 to Apple DOS 3.3?  I have ProDOSi for ProDOS.

 

 

If you make it someone will probably use it.

 

Offline
Last seen: 4 days 12 hours ago
Joined: Nov 12 2022 - 16:50
Posts: 128
I am processing the

I am processing the information right now.  :)  I have another question: how do I make a cc65 C program run automatically when a DOS 3.3 disk image is run?

mmphosis's picture
Offline
Last seen: 2 weeks 8 hours ago
Joined: Aug 18 2005 - 16:26
Posts: 398
to run a program automatically when booted

> how do I make a cc65 C program run automatically when a DOS 3.3 disk image is booted?

A DOS 3.3 disk will automatically run an Applesoft (or Integer) BASIC program when it is booted. If the startup program is named HELLO which it often is then the following should work. In my example, I assume your cc65 Binary file is named "TEXT ADVENTURE"

0 PRINT CHR$(4)"BRUN TEXT ADVENTURE"

SAVE HELLO

 

Online
Last seen: 1 hour 55 min ago
Joined: Jul 5 2018 - 09:44
Posts: 1518
It is possible to make the

It is possible to make the "hello" program be a binary...  The Beagle Bros utility "DOS BOSS" can do that for you if my memory serves.

 

 

 

Offline
Last seen: 4 days 12 hours ago
Joined: Nov 12 2022 - 16:50
Posts: 128
Thank you.  :)

Thank you.  :)

mmphosis's picture
Offline
Last seen: 2 weeks 8 hours ago
Joined: Aug 18 2005 - 16:26
Posts: 398
DOS 3.3: Auto-run with a machine language program

When DOS is booted, it runs the program that was in memory when the diskette was initialized, unless you change DOS to BRUNs the Hello file instead.

https://support.apple.com/kb/TA43020

 

Offline
Last seen: 4 days 12 hours ago
Joined: Nov 12 2022 - 16:50
Posts: 128
How do I initialize a DOS 3.3

How do I initialize a DOS 3.3 disk using AppleCommander with a cc65 program I provide?

CVT
CVT's picture
Offline
Last seen: 3 hours 40 min ago
Joined: Aug 9 2022 - 00:48
Posts: 310
Harry Potter wrote:How do I
Harry Potter wrote:

How do I initialize a DOS 3.3 disk using AppleCommander with a cc65 program I provide?

 

Could you post a cc65 program you have compiled for the Apple II? It can be as simple as a "Hello World".

Offline
Last seen: 4 days 12 hours ago
Joined: Nov 12 2022 - 16:50
Posts: 128
How do I post a program here

How do I post a program here if I am replying?  I have a Hello, world! program compiled but don't know how to post it except when I'm originating a thread.

CVT
CVT's picture
Offline
Last seen: 3 hours 40 min ago
Joined: Aug 9 2022 - 00:48
Posts: 310
Zip it and hit Media browser

Zip it and hit Media browser (rightmost button on the toolbar).

Offline
Last seen: 4 days 12 hours ago
Joined: Nov 12 2022 - 16:50
Posts: 128
Thank you.  I attached a

Thank you.  I attached a Hello, World! program that uses A2SimpleIO.

Offline
Last seen: 4 days 12 hours ago
Joined: Nov 12 2022 - 16:50
Posts: 128
test.zip
CVT
CVT's picture
Offline
Last seen: 3 hours 40 min ago
Joined: Aug 9 2022 - 00:48
Posts: 310
This is not a valid Apple II

This is not a valid Apple II binary program. The first byte is 0, which causes it to jump to Monitor.

Offline
Last seen: 4 days 12 hours ago
Joined: Nov 12 2022 - 16:50
Posts: 128
How do I build an Apple2

How do I build an Apple2 binary program with cc65?

MacFly's picture
Online
Last seen: 1 hour 44 min ago
Joined: Nov 7 2019 - 13:49
Posts: 259
See the Apple II section in the cc65 wiki:
mmphosis's picture
Offline
Last seen: 2 weeks 8 hours ago
Joined: Aug 18 2005 - 16:26
Posts: 398
Binary format

https://cc65.github.io/doc/apple2.html#s2

The standard binary file format generated by the linker for the Apple ][ target is an AppleSingle file. The default load address is $803.

AppleCommander 1.4.0 or later (available at https://applecommander.github.io/) includes the option -as that allows to put AppleSingle files onto disk images containing DOS 3.3 as well as ProDOS 8.

 

 

mmphosis's picture
Offline
Last seen: 2 weeks 8 hours ago
Joined: Aug 18 2005 - 16:26
Posts: 398
run the program by skipping the 58 byte AppleSingle header

BLOAD TEST,A1993

CALL 2051

Offline
Last seen: 4 days 12 hours ago
Joined: Nov 12 2022 - 16:50
Posts: 128
mmphosis, I thank you for

mmphosis, I thank you for your help.  I can use your suggestions, but I really want an easier way, something I can do from a batch file.  BTW, I can use Template Creator to create the new disk images and compile batch files and simply have a default output filename.

magnusfalkirk's picture
Online
Last seen: 9 min 3 sec ago
Joined: Feb 18 2007 - 11:46
Posts: 306
Apple II batch file
Harry Potter wrote:

mmphosis, I thank you for your help.  I can use your suggestions, but I really want an easier way, something I can do from a batch file.  BTW, I can use Template Creator to create the new disk images and compile batch files and simply have a default output filename.

 

I don't believe there is any way to do batch files on the Apple II. What mmphosis sent you is the easiest way to test your program.

Offline
Last seen: 4 days 12 hours ago
Joined: Nov 12 2022 - 16:50
Posts: 128
Batch files are for Windows,

Batch files are for Windows, as I'm not using an actual Apple2 computer but rather Apple2 emulators on Windows PCs.

Online
Last seen: 1 hour 55 min ago
Joined: Jul 5 2018 - 09:44
Posts: 1518
I wrote some command line

I wrote some command line utilities that I use to assemble code with my 65C02 cross assembler and then move them onto disk images that I have used in shell scripts under Linux.  But I have no idea whether they would work on Windows or any way to test it since I don't have Windows.

 

 

Offline
Last seen: 4 days 12 hours ago
Joined: Nov 12 2022 - 16:50
Posts: 128
Someone elsewhere told me to

Someone elsewhere told me to get Linux, where to get it and how to get it to work along side Windows, but I lost the URLs and forgot where I was told it.  :(  Can you give me an URL to both a Linux distro and a VM to run it within Windows?

Online
Last seen: 1 hour 55 min ago
Joined: Jul 5 2018 - 09:44
Posts: 1518
Harry Potter wrote:Someone
Harry Potter wrote:

Someone elsewhere told me to get Linux, where to get it and how to get it to work along side Windows, but I lost the URLs and forgot where I was told it.  :(  Can you give me an URL to both a Linux distro and a VM to run it within Windows?

 

 

https://www.virtualbox.org/wiki/Downloads

 

 

 

https://ubuntu.com/download/desktop

 

 

Offline
Last seen: 4 days 12 hours ago
Joined: Nov 12 2022 - 16:50
Posts: 128
I downloaded them.  Thank you

I downloaded them.  Thank you.  :)  Can I emulate Win98SE on VirtualBox?  I have a Win98SE minitower at my mother's house and want to experiment with file compression on it, but it's not working.  :(

Online
Last seen: 1 hour 55 min ago
Joined: Jul 5 2018 - 09:44
Posts: 1518
Harry Potter wrote:I
Harry Potter wrote:

I downloaded them.  Thank you.  :)  Can I emulate Win98SE on VirtualBox?  I have a Win98SE minitower at my mother's house and want to experiment with file compression on it, but it's not working.  :(

 

I have no idea if they support anything that old anymore.  I try to avoid dealing with Windows in general as much as possible so I'm not really the best person to ask probably.  I've never used Windows at home and I've only used it at work as little as I could get away with.  The past couple places I have worked at have not used it, which I like.

 

There may be something else that can support very long obsolete software like that, maybe this one:

 

https://bochs.sourceforge.io/

 

I don't know much about it these days.  I haven't really looked at that in about 20 years.

 

Offline
Last seen: 4 days 12 hours ago
Joined: Nov 12 2022 - 16:50
Posts: 128
That's okay, as I had a web

That's okay, as I had a web page that told me how to set up Win98 emulation under DOSBox-X.  I just need to find it again.  :(

Log in or register to post comments