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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/04/05 18:27
Modified:
  04/04/05 18:30

Read: times


 
#90988 - cal which calls which calls which calls
Responding to: ???'s previous message
WRITE_TEXT:  SETB   EN    1 4 7 
             SETB   RS 
             CLR    RW 
             MOV    P0,A 
             CLR    EN 
             LCALL  WAIT_LCD 
             POP    DPH 
             POP    DPL
;;;;;;;;;LJMP DSPL_STR 
             call   DSPL_STR    2 5 8
             ret 


DSPL_STR:    CLR    A 
             MOVC   A,@A+DPTR 
             INC    DPTR 
             PUSH   DPL 
             PUSH   DPH 
;;;;;;;;;;;;;;             CJNE A,#0FFH,WRITE_TEXT
             cjne   a,#0ffh,writeit 
done:        POP    DPH 
             POP    DPL 
             RET

writeit:     call   WRITE_TEXT  3 6 9....
             jmp    done
I "de-smarted your code and from the above you should be able to see what happens. You may think replacing a call/ret with a jmp is smart, all it does is to confuse the $#!+ out of anyone.

Erik

List of 18 messages in thread
TopicAuthorDate
Can not write second line on LCD            01/01/70 00:00      
   Since you do not believe in comments            01/01/70 00:00      
      Comments            01/01/70 00:00      
         what would you rather            01/01/70 00:00      
         Untidy            01/01/70 00:00      
   Code with comments            01/01/70 00:00      
      what happened            01/01/70 00:00      
         Did you check the second line address?            01/01/70 00:00      
         How to post code - detailed instructions            01/01/70 00:00      
            neatly formatted, yes but            01/01/70 00:00      
         0xC0 is correct            01/01/70 00:00      
            Can write anywhere            01/01/70 00:00      
               cal which calls which calls which calls            01/01/70 00:00      
               Works here            01/01/70 00:00      
               timing, maybe...            01/01/70 00:00      
                  Timing?            01/01/70 00:00      
   I am sure!            01/01/70 00:00      
   I am not sure now!            01/01/70 00:00      

Back to Subject List