BLOAD/BRUN beginning bytes

7 posts / 0 new
Last post
Offline
Last seen: 14 years 2 weeks ago
Joined: Mar 19 2008 - 13:57
Posts: 38
BLOAD/BRUN beginning bytes

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

Offline
Last seen: 8 years 6 months ago
Joined: Apr 10 2006 - 20:01
Posts: 1013
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

Offline
Last seen: 10 months 3 weeks ago
Joined: Dec 19 2003 - 18:53
Posts: 906
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

Offline
Last seen: 8 years 6 months ago
Joined: Apr 10 2006 - 20:01
Posts: 1013
Re: Where'd you get the C compiler? Is there a digital manual?

Where can one get a the C compiler?

cc65: http://www.cc65.org/
Aztec C: http://www.clipshop.ca/Aztec/index.htm#apple

Offline
Last seen: 14 years 2 weeks ago
Joined: Mar 19 2008 - 13:57
Posts: 38
Thanks. And for everyone's

Thanks.

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

Offline
Last seen: 14 years 2 weeks ago
Joined: Mar 19 2008 - 13:57
Posts: 38
ADTPro?

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

Offline
Last seen: 8 years 6 months ago
Joined: Apr 10 2006 - 20:01
Posts: 1013
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.

Log in or register to post comments