BLOAD/BRUN beginning bytes

Apple II

I was using a C compiler for the Apple II (cc65) I sucessfully compiled one of their examples, and I put it on a disk image to test in an emulator. But...the BLOAD/BRUN commands need a few bytes at the beginning of the file to tell it where to load, and how much. But I have no clue what exactly it needs, and in what syntax? If some Apple II innards guru could help me with this that would be wonderful!

Thanks!
~Mark Baldridge

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
david__schmidt's picture

Mark - AppleCommander has

Mark -

AppleCommander has some nice tools to move your code to an executable form on a disk image:
http://home.woh.rr.com/jbmatthews/ac.html

Also take a look here:
http://home.woh.rr.com/jbmatthews/a2/cross.html#sec5

Where'd you get the C compiler? Is there a digital manual?

Where can one get a the C compiler?

Also, you shouldn't need the syntax for BLOAD'ing (though you can BLOAD to a specific location) and BRUN'ing, just BSAVE'ing. It is discussed in another A][ forum here, so search for that for more details.

example: BSAVE HIRESSCRNMEM,A$2000,L$2000
-Where HIRESSCRNMEM is the name of the file to be saved, A$ indicates the starting point in memory (hexadecimal), and L$ the length of the file.

Mutant_Pie

david__schmidt's picture

Re: Where'd you get the C compiler? Is there a digital manual?

mutant_pie wrote:
Where can one get a the C compiler?
cc65: http://www.cc65.org/
Aztec C: http://www.clipshop.ca/Aztec/index.htm#apple

Thanks. And for everyone's

Thanks.

And for everyone's info, I did use cc65.

ADTPro?

Could you use ADTPro's bootstrapping utility to put binarys into an apple's memory?

david__schmidt's picture

Apple Game Server?

You _could_, but it would be a bit of a stretch. Apple Game Server (http://a2gameserver.berlios.de/) might be a better fit.