Re: A86: abs and rst $10


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

Re: A86: abs and rst $10




ti actually has documentation on findsym on their website.  it does not
return the size of the variable, however there is a rom call that will: 
_DATASIZE = $477f  call it like this:
	rst $10	; findsym
	ex de,hl	; make bhl -> data
	call _DATASIZE
registers are now:
  bhl=ahl -> data (size word if there is one)
  de = size of var (in bytes)
  c = var type
  carry will be clear
this will trigger a memory error if the var is >64k

now, the absolute value of $800b depends on how many bits you're using. 
if you're using 16 bits, it's $7ff5.  if you're using 24 bits, the
absolute value of $00800b is $00800b.  basically, if the high bit is set,
you subtract it from 0 to get the absolute value.  (or invert all the
bits and increment it)

-josh

On Sat, 16 Oct 1999 23:59:56 GMT "Andrew T" <ironman_294@hotmail.com>
writes:
>
>First does rst $10 (call _FINDSYM) return how long the var is that you 
>
>looked for?  Second how would I find out abs of $800b is?  Would it 
>just be 
>$00800b?
>
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
>

___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.