It is currently Wed Jan 20, 2021 4:27 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Quick Question
PostPosted: Wed Apr 10, 2013 4:20 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Oct 24, 2005 1:05 pm
Posts: 745
This code used to work. Now I am getting "undefined symbol" errors: What am I doing wrong?

Code:
CMP cx,0
JGE l_pos_1
NEG cx
pos_1: CMP cx,leftVol


Top
 Profile  
Reply with quote  
 Post subject: Re: Quick Question
PostPosted: Wed Apr 10, 2013 5:50 am 
Offline
Addict
Addict
User avatar

Joined: Fri Sep 21, 2007 5:52 am
Posts: 3556
Location: New Zealand
does this work?
Code:
CMP cx,0
JGE @pos_1
NEG cx
!@pos_1:
CMP cx,leftVol


Top
 Profile  
Reply with quote  
 Post subject: Re: Quick Question
PostPosted: Wed Apr 10, 2013 12:58 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 31, 2005 11:09 pm
Posts: 3698
Location: Italy
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 ?

Quote:
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 :wink:

_________________
[ My little PureBasic review ]


Top
 Profile  
Reply with quote  
 Post subject: Re: Quick Question
PostPosted: Wed Apr 10, 2013 4:22 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Oct 24, 2005 1:05 pm
Posts: 745
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Quick Question
PostPosted: Wed Apr 10, 2013 4:59 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 31, 2005 11:09 pm
Posts: 3698
Location: Italy
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 :wink:

_________________
[ My little PureBasic review ]


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye