Page 1 of 1
Quick Question
Posted: Wed Apr 10, 2013 4:20 am
by chris319
This code used to work. Now I am getting "undefined symbol" errors: What am I doing wrong?
Code: Select all
CMP cx,0
JGE l_pos_1
NEG cx
pos_1: CMP cx,leftVol
Re: Quick Question
Posted: Wed Apr 10, 2013 5:50 am
by idle
does this work?
Code: Select all
CMP cx,0
JGE @pos_1
NEG cx
!@pos_1:
CMP cx,leftVol
Re: Quick Question
Posted: Wed Apr 10, 2013 12:58 pm
by luis
chris319 wrote:This code used to work
This must be a snippet from something bigger or I don't see how it could have ever worked.
Where is leftVol ?
Now I am getting "undefined symbol" errors
"Undefined symbol" should be followed by the symbol name. Just look around for it.
Maybe "leftVol" in this case ?
PS: nice subject
Re: Quick Question
Posted: Wed Apr 10, 2013 4:22 pm
by chris319
If it once worked then LeftVol must be part of some code of which this is a snippet, abridged for posing the question here on the PB board.
You guessed correctly. Idle had the solution.
Re: Quick Question
Posted: Wed Apr 10, 2013 4:59 pm
by luis
chris319 wrote:If it once worked then LeftVol must be part of some code of which this is a snippet.
In a perfect world must, here should. Maybe. Hope you understand.
Props to idle then