[Slackers] New slangb1.20 up
Steve Judd
sjudd at ffd2.com
Mon May 29 13:19:59 CDT 2006
Hola dewdz,
Okay, new slang beta up:
http://www.ffd2.com/fridge/slang/slang120.zip
This hopefully fixes the earlier bugs, doesn't add any new bugs, and will
never need any more updates ever. This is a pretty big update, such that
I ran out of memory again and have moved slangdef from $a800 to $aa00.
One new thing is allowing pointers to arrays to be passed to subroutines
-- like, an easy way to pass arrays to subroutines:
ubyte ^t1(16,16)
...
test(t1)
sub test(ubyte ^arr(16,16))
arr(2,3)=1
endsub
I've also updated functions to allow for multiple arguments. Previously,
functions were like sin(x) -- one argument in parenthesis.
I've also added a way for users to add new commands, called userdef.
Userdef works exactly the same as slangdef: you put "userdef" at the top
of the file, then you can define new keywords, functions, eval operators,
and assignment operators. You then compile this file and save somewhere.
You then use this file by either
1) Editing the "config.s" file to add "user "filename"" (SCPU)
2) Using "-u filename" from xlang. Or will, once I add to xlang!
With this method:
- can add commands without editing slangdef
- compiling is much faster
- much easier for me to implement (much less error prone, etc.)!
I am starting to document userdef/slangdef and will send stuff in another
post.
NOTE: I have not updated xlang yet. I will do so in the near future. If
someone motivated (Jaymz) wants to try it out, the strategy is:
load in slangdef
useraddr is stored in $aa0a/b
load file to useraddr, set $aa0c to 1
1st two bytes of userdef file should be same as $aa0a/b addr
Otherwise I'll add this in in the near future.
cu,
-S
More information about the Slackers
mailing list