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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/03/05 18:55
Modified:
  06/03/05 19:14

Read: times


 
#94302 - Not so good...
Responding to: ???'s previous message
I tried the example that you gave, but the asm51 compiler says that there are two errors:

1: 0000 74 F4 mov a,#0F4h
2: 0002 78 04 MOV R0,#004h
3: 0004 78 00 00 CJNE A,R0,NOT_EQ
^
@@@@@ illegal operand @@@@@

4: ; ... .... ; R7 = 60H.
5: 0007 40 00 NOT_EQ: JC REQ_LOW ; IF A < R0.
^
@@@@@ symbol not defined @@@@@

6: ; ... .... ; R7 > 60H.
7: end

the first arrow is on the line: CJNE A,R0,NOT_EQ on the R0, and the second is on the line:NOT_EQ: JC REQ_LOW on the REQ_LOW sentence.
what to do??
Ofir.

List of 23 messages in thread
TopicAuthorDate
compares on the 8051.            01/01/70 00:00      
   CJNE            01/01/70 00:00      
      sorry, I forgot            01/01/70 00:00      
   compares on the 8051            01/01/70 00:00      
      Not so good...            01/01/70 00:00      
         Comparing            01/01/70 00:00      
            where is the bible?            01/01/70 00:00      
               Here it is            01/01/70 00:00      
               Compare value            01/01/70 00:00      
                  the code            01/01/70 00:00      
                     Another method            01/01/70 00:00      
                        what?            01/01/70 00:00      
                           No            01/01/70 00:00      
                              There are more errors!            01/01/70 00:00      
                                 anyone??            01/01/70 00:00      
                                 There are more errors!            01/01/70 00:00      
                                    YOU ARE GREAT!!! THANKS!!!            01/01/70 00:00      
                                       Simulator            01/01/70 00:00      
                                       search..            01/01/70 00:00      
                                          Compare tips            01/01/70 00:00      
         Try these            01/01/70 00:00      
            sensors            01/01/70 00:00      
   Macros            01/01/70 00:00      

Back to Subject List