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

Re: 6502 Assembler books



Alistair Ross wrote:
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.

I am not well versed in ASM... but I know a few of the hooks.

Most of them unfortunately, I know in their decimal format (call -756 and such), though I could probably dig through my ABABI REE and list out the hooks I've reproduced in that.

Here's some of the hooks I know of, anyway. I don't know the parameters to all of them though, so YMMV. Also, I know very little all in all about the ][ though I did write an emulator for it.

$F800 PLOT
$F819 HLIN
$F828 VLIN
$F864 COLOR=
$F871 SCRN(
$F94A HTAB (input in X register)
$FAA6 REBOOT
$FB1E PDL(
$FB39 TEXT
$FB40 GR
$FB5B VTAB (input in X register)
$FB60 BANNER (doesn't work on clones, sometimes crashes a IIgs)
$FC58 CLRSCR
$FC9C CLREOL
$FDOC GETCH
  (basically deadwaits on the highorder bit of $C000, then hits $C010)
$FDED PUTCH (input in A register)
  (for NORMAL text set the high-order bit)
$FD6A GETLIN (output to address $200 and up. with CR termination)
  (length of string minus the CR is stored in the X register)

Moll.