[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 6502 Assembler books



In article <41c6d676$0$8343$db0fefd9@news.zen.co.uk>,
 Alistair Ross <removemeajross@atxboltdot.net> wrote:

> Michael J. Mahon wrote:
> > Charles Richmond wrote:
> > 
> > 
> >>I have _ 6502 Assembly Language Subroutines_ and I think it sucks...
> > 
> > 
> > I agree.
> > 
> > Many "library"-type books for specific processors seem to be
> > hack translations of libraries originally written for another
> > processor.
> > 
> > Generic libraries must assume some canonical method of
> > passing parameters, which generally is a crock.
> > 
> > Further, the specific programming tricks for a certain machine
> > are often completely neglected--exactly the kinds of things that
> > any budding assembly language programmer needs to become
> > familiar with.
> > 
> > As soon as you have your "sea legs" with a particular processor,
> > you should try to find some well-written code for it that will teach
> > you some ways to organize data and write good code.
> > 
> > For the 6502, the Apple II monitor is quite instructive to read.
> > 
> > The Applesoft interpreter is very uneven, with some clever 
> > code but lots of silly code.  It has the look of something done
> > by a committee.  ;-(  But even in that case, the _bugs_ are
> > interesting!  ;-)
> > 
> > -michael
> 
> Thanks for all your help on this one guys,
> 
> I downloaded the S-C Macro Assembler and I'm having good success so far, 
> after reading through most of the manual.
> 
> I've downloaded various other assembly tutorials and skimmed over them, 
> but what I appear to be lacking is the actual Apple hooks - the 
> locations in memory that I should be using to get the speaker to 
> operate, or text to appear on the screen, for graphics to be used etc. I 
> can't seem to find anything that says - these are the addresses of the 
> hooks (and even better, this is how you would use them).
> 
> Anybody know where Apple II hooks are listed? I've found a few lists of 
> what look like hooks but they are all for PEEK and POKE, so not much use 
> to me in an assembler.

What you need now are the Apple references - The monitor ROM listing, 
plus the docs on the softswitches and such that live at $C000-CFFF. "The 
Apple II reference manual" would be a prime item for you to be looking 
for.

-- 
Don Bruder - dakidd@sonic.net - New Email policy in effect as of Feb. 21, 2004.
Short form: I'm trashing EVERY E-mail that doesn't contain a password in the
subject unless it comes from a "whitelisted" (pre-approved by me) address.
See <http://www.sonic.net/~dakidd/main/contact.html> for full details.