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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/02/11 15:18
Read: times


 
#181675 - "unknown label"
Responding to: ???'s previous message
I have been studying the "bible" and I think I have a good start but I cant seem to get it to do a conditional jump to a subroutine. Every conditional jump command I try to run the simulator throws up an error saying "unknown label" referring to the subroutine name.

Here is the code I have so far:

START
LOOP:SETB P2.0
JNB 2.0,SUBONE
SETB P2.1
JB 2.1,SUBTWO
SETB 2.2
JB 2.2,SUBTHREE
SEB 2.3
JB 2.3,SUBFOUR
SJMP LOOP
END

This shouldn't be a difficult program and I know the problem is me. What am I doing wrong?

List of 21 messages in thread
TopicAuthorDate
problem with simulator?            01/01/70 00:00      
   First of all            01/01/70 00:00      
      normally?            01/01/70 00:00      
         RE: "normally"            01/01/70 00:00      
   just saw it            01/01/70 00:00      
      Erik            01/01/70 00:00      
         "bible time"            01/01/70 00:00      
   Thanks but....            01/01/70 00:00      
      all the same            01/01/70 00:00      
      Learning requires study            01/01/70 00:00      
         a small correction            01/01/70 00:00      
         Thankyou            01/01/70 00:00      
            the chips listed ....            01/01/70 00:00      
   bit/byte addressing            01/01/70 00:00      
   "unknown label"            01/01/70 00:00      
      Use code tags            01/01/70 00:00      
         relative addressing            01/01/70 00:00      
            the Assembler tells you.            01/01/70 00:00      
            How would I find out if the labels are undefined?            01/01/70 00:00      
         nope            01/01/70 00:00      
         horribly wrong            01/01/70 00:00      

Back to Subject List