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

Re: Two ways to torture a comp teacher



>>also try ?usr(1) and that sometimes will do it.
> 
> Quick question:  Has anyone ever used USR() to do anything useful?  I've
> been using Apple II's for a long time, and I've never, ever, seen this
> function appear.
> 
> Also, how 'bout a quick demo of how to use USR()?  I have a general idea,
> but none of the documentation I've seen has included an example.

I recall that the USR function basically starts by doing a call 10.
When you RTS from your code, I think it returns the number stored
around $A5 or so. (in floating point, of course; ick!)

It's a good way to call a routine if you don't want any return, or if
you feel like fiddling around with floats.  There is also a routine
I forget where, that you can call that encodes a 16 bit integer you supply
and loads it into the above location.  Definitely don't quote me on the
location, I'm probably wrong.

BTW, does anyone have Merlin Pro????

I bought it a long time ago, and, against the advice of the manual,
did NOT make a backup before running the Applesoft Basic assembly
thingie. (thought I was safe -- flipped the special switch on the back
of my drive to force write protect)   Well lets just say I hit the wrong
switch position.  MP deleted the files as it compiled them!!!  VERY UGLY!

-- 
Nathan Fisher
  FISHERN3485@COBRA.UNI.EDU