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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/04/05 13:40
Read: times


 
Msg Score: -1
 -1 Non-Specific question
#92883 - Syntax error For ORG Statement
Sorry for the newb question, but I have been trying to debug these three error messages for hours with no luck. I am using two external hardware interrupts in my code, so in total I have four different ORG statement. One is at ORG 0000H to begin the program, followed by a jump to the main body of the program at 0100H. Then, the two exterenal hardware ISRs are at 0003H and 0013H, respectively. I keep getting "Undecodable line, Syntax error" messages for the additional ORG statements in the READS51 compiler. To clarify, it looks something like this:

ORG 0000H

LJMP MAIN

ORG 0003H
ISR1

ORG 0013H
ISR2

ORG 0100H
MAIN:

REST OF PROGRAM


Can anyone give me any general hints for common mistakes to look out for or logic errors I may have? I can't seem to figure it out....BTW, if you're familiar with Reads51 you know that zeroes and ohs look exactly the same when types onto the screen. I have verified that the ORG statements contain zeroes, not ohs.

List of 11 messages in thread
TopicAuthorDate
Syntax error For ORG Statement            01/01/70 00:00      
   try the metalink documentation            01/01/70 00:00      
   :            01/01/70 00:00      
      Colons?            01/01/70 00:00      
         ask blue, do not expect red answe            01/01/70 00:00      
         Code size            01/01/70 00:00      
            what is the problem?            01/01/70 00:00      
               ISR at 13H            01/01/70 00:00      
            Code Size Reply            01/01/70 00:00      
         re:            01/01/70 00:00      
            and            01/01/70 00:00      

Back to Subject List