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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/22/04 18:20
Read: times


 
#67205 - RE: Begin at the beginning!
Responding to: ???'s previous message
This snippet from startup.a51 should tell the story

IF XDATALEN <> 0
                MOV     DPTR,#XDATASTART
                MOV     R7,#LOW (XDATALEN)
  IF (LOW (XDATALEN)) <> 0
                MOV     R6,#(HIGH XDATALEN) +1
  ELSE
                MOV     R6,#HIGH (XDATALEN)
  ENDIF
                CLR     A
XDATALOOP:      MOVX    @DPTR,A
                INC     DPTR
                DJNZ    R7,XDATALOOP
                DJNZ    R6,XDATALOOP
ENDIF

IF PPAGEENABLE <> 0
                MOV     P2,#PPAGE
ENDIF

IF PDATALEN <> 0
                MOV     R0,#PDATASTART
                MOV     R7,#LOW (PDATALEN)
                CLR     A
PDATALOOP:      MOVX    @R0,A
                INC     R0
                DJNZ    R7,PDATALOOP
ENDIF


Erik


List of 12 messages in thread
TopicAuthorDate
keil pdata            01/01/70 00:00      
   Begin at the beginning!            01/01/70 00:00      
      RE: Begin at the beginning!            01/01/70 00:00      
         RE: Begin at the beginning!            01/01/70 00:00      
            RE: Begin at the beginning!            01/01/70 00:00      
               RE: Begin at the beginning!            01/01/70 00:00      
               RE: Begin at the beginning!            01/01/70 00:00      
                  RE: Begin at the beginning!            01/01/70 00:00      
   RE: keil pdata            01/01/70 00:00      
      RE: keil pdata            01/01/70 00:00      
         RE: keil pdata            01/01/70 00:00      
            RE: keil pdata            01/01/70 00:00      

Back to Subject List