[A83] Re: Defined Variables


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

[A83] Re: Defined Variables




> >to specify a memory address to load into, you need to place the
> >address between ()'s.
> >so do:
> >ld (bradvar),a (= ld (103),a)
> >
> 
> <heading>
> VAR	EQU  9872h

try:

VAR .equ 9872h

that should do it.

--Peter-Martijn

> ; Essentially what I want to do is to create a variable
> ;So I’ve told VAR where to put whatever I assign it
> 
> ld (VAR),7
> 
> ;This should put 7 in address 9872h, right?
> ;Then I could assign the value to a register if I felt so inclined, like:
> ld a,(VAR)
> 
> Obviously this is wrong, as TASM won’t take it. The question for me then 
> becomes, what’s wrong? I hope you know the answer.
> 
> Thanks
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> 
> 





References: