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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/24/08 01:33
Read: times


 
#159292 - HA! figured it out
Responding to: ???'s previous message
Was looking for final memory address instead of one less so was writing latest value into 0141H in memory but not shifting previous. Ran a test of 50 results and all sit in their proper memory addresses now.

;
INCNXNU:MOV     DPTR,#0171H
INCNJ:  CALL    READEE          ;READ MEMORY AND STORE IN 46H
        INC     DPTR
        MOV     48H,46H
        CALL    WRITEEE         ;WRITE MEMORY MOVE TO NEXT POSITION DOWN
        DEC     DPL
        DEC     DPL
        MOV     A,DPL
        CJNE    A,#40H,INCNJ    ;changed from #41H
        MOV     DPTR,#0141H     ;added
        MOV     48H,44H         ;PUT LAST RESULT ON TOP AT 0141H
        CALL    WRITEEE
        RET
;   


List of 16 messages in thread
TopicAuthorDate
stacking numbers in memory code problem            01/01/70 00:00      
   does readee put its value in 46H?            01/01/70 00:00      
      readee reads memory            01/01/70 00:00      
         Your code looks good to me            01/01/70 00:00      
            it looks awful to me            01/01/70 00:00      
               it was indented            01/01/70 00:00      
                  like this            01/01/70 00:00      
                  Instructions            01/01/70 00:00      
                     yes, yes, ok            01/01/70 00:00      
                        Guided/unguided?            01/01/70 00:00      
            EEPROM not final            01/01/70 00:00      
   Hard coded values            01/01/70 00:00      
      that can't be it            01/01/70 00:00      
         Are you 199% sure??            01/01/70 00:00      
            Here is the WRITEEE code            01/01/70 00:00      
               HA! figured it out            01/01/70 00:00      

Back to Subject List