[Slackers] beta 1.20

Steve Judd sjudd at ffd2.com
Mon Apr 17 21:10:13 CDT 2006


Sorry, a quick follow-up to the local labels/asm issue.  Another option is
to use the "sub asm" feature.  To use it, you write an asm routine as
normal:

sort
	lda ...
	sta ...
:loop	...
:blah
:yak
	rts

Then, after the subroutine, use a line like

sub asm spritesort at sort()

This will create a subroutine called "SpriteSort" which will call the asm
routine.  This is how Slang can "capture" asm routines (in particular
external routines).

Just tossing out another option...

-S


More information about the Slackers mailing list