gnupic: gpasm quirks


Previous by date: 19 Jun 2002 23:17:12 -0000 Re: porting from mpasm, Linas Vepstas
Next by date: 19 Jun 2002 23:17:12 -0000 Re: porting from mpasm, Craig Franklin
Previous in thread:
Next in thread: 19 Jun 2002 23:17:12 -0000 Re: gpasm quirks, Craig Franklin

Subject: gpasm quirks
From: Tim ODriscoll ####@####.####
Date: 19 Jun 2002 23:17:12 -0000
Message-Id: <Pine.LNX.4.33.0206192354180.1943-100000@cube.stokepogesway.net>

Hi everyone,

Sorry for the really basic question, but I've not found an answer in the
docs/pdf's..

I'm wanting to use the variable command of gpasm so I can tell a function
which pin it should be using for it's output.

Here's what I'm doing:
;=======================
	variable myVar

loop
myVar=4
	call	myFunc

myVar=5
	call	myFunc

myVar=8
goto	loop
;========================

Trouble is that each time myFunc is called, it seems to think myVar=8...

I'm using the latest gputils-0.10.3, so it's gotta be my syntax.. I've
tried all the different combinations I can think of, but the one that
works is eluding me!.. There's no compiler errors from gpasm when it
assembles the hex file, either..

Can someone show me The Right Way to assign values to variables? :)

Cheers,

Tim


Previous by date: 19 Jun 2002 23:17:12 -0000 Re: porting from mpasm, Linas Vepstas
Next by date: 19 Jun 2002 23:17:12 -0000 Re: porting from mpasm, Craig Franklin
Previous in thread:
Next in thread: 19 Jun 2002 23:17:12 -0000 Re: gpasm quirks, Craig Franklin


Powered by ezmlm-browse 0.20.