gnupic: Allocating addresses for variables
Subject:
Allocating addresses for variables
From:
Simon Wood ####@####.####
Date:
20 Nov 2001 15:37:29 -0000
Message-Id: <44632C76B97BD211AF6B00805FADCAB208790935@exchange.saltaire.pace.co.uk>
Hi all,
I'm just getting started with my first PIC project. I have some code
that compiles with GPASM and runs OK, but I have 'hacked' the addresses
of the variables with:
Var1 set 0x20
As said this works but is a little messy. It also does not set an initial
value (I have to do that later in the code...).
Is there a nicer/cleaner/better way to specify a variable name so that
it can be initialised automatically?
Thanks in advance,
Simon Wood
PS. If anybody is interested I'm using a PIC to emulate a Sony auto-CD
changer, so that the radio enables the RCA inputs and I can use my MP3
player in the car. See http://gnunilink.sourceforge.net