[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)
>

Ion.inc has the following:

saferam1	=9872h
saferam2	=858fh
saferam3	=8508h
saferam4	=8478h

here’s my take on it:
<heading>
VAR	EQU  9872h
; 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





Follow-Ups: