[A83] Re: Defined Variables


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

[A83] Re: Defined Variables




> Secondly, I know that on an 83 the range of registers that can be used for 
> custom defined variables is 8265h-8500h (possibly higher?). Does this 
> correspond to the 83+? 

No, TI-83plus has other "saferam" area's.
You should theck ion.inc for the saferam1 - saferam5 area's.

> TASM appears to approve the defining of it 
> syntactically, but refuses to allow allocation of data through ld (such 
> as: ld bradvar,7). Am I using the wrong memory/syntax? Please humor my 
> ignorance on these fundamentals.

Wrong syntax.

bradvar is just a substitute for a number.
you can (once!!!) define it to e.g. 103. and then load it into a with
 ld a,bradvar (=ld a,103)
you cannot load a into 103, so you can't dor
 ld bradvar,a
you can however load a into the memory space with address 103, or bradvar since
you equalled it to 103 in this example.

to specify a memory address to load into, you need to place the
address between ()'s.
so do:
ld (bradvar),a (= ld (103),a)

--Peter-Mrtijn 


> 
> Thanks
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> 
> 





References: