[A83] Re: Defined Variables


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

[A83] Re: Defined Variables




You could also do:
VAR = saferam1


>From: "Brad Klingenberg" <rncproponent@hotmail.com>
>Reply-To: assembly-83@lists.ticalc.org
>To: assembly-83@lists.ticalc.org
>Subject: [A83] Re: Defined Variables
>Date: Sun, 23 Sep 2001 15:13:39 -0600
>MIME-Version: 1.0
>X-Originating-IP: [65.13.200.49]
>Received: from [195.67.128.9] by hotmail.com (3.2) with ESMTP id 
>MHotMailBD779B8B00BB400431E0C343800906F10; Sun, 23 Sep 2001 14:13:59 -0700
>Received: from towerguard. (mx-1.sollentuna.net [195.67.128.9])by 
>mx-1.sollentuna.net (Postfix) with ESMTPid 75DDD18040; Sun, 23 Sep 2001 
>23:13:43 +0200 (CEST)
>Received: with LISTAR (v1.0.0; list assembly-83); Sun, 23 Sep 2001 23:13:43 
>+0200 (CEST)
>Received: from hotmail.com (f267.law12.hotmail.com [64.4.18.142])by 
>mx-1.sollentuna.net (Postfix) with ESMTP id BBF8018033for 
><assembly-83@lists.ticalc.org>; Sun, 23 Sep 2001 23:13:41 +0200 (CEST)
>Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; 
>Sun, 23 Sep 2001 14:13:39 -0700
>Received: from 65.13.200.49 by lw12fd.law12.hotmail.msn.com with HTTP;Sun, 
>23 Sep 2001 21:13:39 GMT
>From assembly-83-bounce@lists.ticalc.org Sun, 23 Sep 2001 14:14:20 -0700
>Delivered-To: lists.ticalc-assembly-83@mx-1.sollentuna.net
>Message-ID: <F2679Lccuqz2NW37neH00003fbc@hotmail.com>
>X-OriginalArrivalTime: 23 Sep 2001 21:13:39.0911 (UTC) 
>FILETIME=[9DE68570:01C14474]
>X-listar-version: Listar v1.0.0
>Sender: assembly-83-bounce@lists.ticalc.org
>Errors-To: assembly-83-bounce@lists.ticalc.org
>X-original-sender: rncproponent@hotmail.com
>Precedence: bulk
>X-list: assembly-83
>
>
>
> >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
>
>
>


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