Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/18/03 00:56
Read: times


 
#41742 - strange calculator compiling error
Hi guys, I am coding a calculator using the Paulmon 8051 board and the Paulmon monitor. When I try to compile my program, I get the same error about 15 times. The error is "Relative offset exceeds -128 / +127.". I get this error at certain points in my program where I am using cjne or jz on the acc. For instance, I have a variable that keeps track of how many digits have been entered by the user. When the user hits an operation key(+, -, /, x), I need to check and make sure that they have entered in a number before the operation can be saved. I move the variable that keeps track of the number of digits into the acc. I then do a jz NoNumberYet. If the user hasn't entered in a number, this jz line will recognize that an operation can't take place yet, and will tell the user so. I don't see anything wrong with this. but I get that error "Relative offset exceeds -128 / +127." when I do this and in other places where I use cjne or jz with the acc. Help me out please. Thanks.

List of 3 messages in thread
TopicAuthorDate
strange calculator compiling error            01/01/70 00:00      
   RE: strange calculator compiling error            01/01/70 00:00      
   RE: strange calculator compiling error            01/01/70 00:00      

Back to Subject List