This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

what is command " MOVX @Ri, A" in C51 ?

I have a question ,
please show me command " MOVX @RI,A" in C51 ! I can't to find , please help me !
thanks very much !

Parents
  • stmt level    source
    
       1          void movx(unsigned char pdata *p, unsigned char b)
       2          {
       3   1          *p = b;
       4   1      }
    
    ASSEMBLY LISTING OF GENERATED OBJECT CODE
    
                 ; FUNCTION _movx (BEGIN)
                                               ; SOURCE LINE # 1
    ;---- Variable 'b' assigned to Register 'R5' ----
    ;---- Variable 'p' assigned to Register 'R0' ----
    0000 A807              MOV     R0,AR7
                                               ; SOURCE LINE # 2
                                               ; SOURCE LINE # 3
    0002 ED                MOV     A,R5
    0003 F2                MOVX    @R0,A
                                               ; SOURCE LINE # 4
    0004 22                RET
                 ; FUNCTION _movx (END)
    

Reply
  • stmt level    source
    
       1          void movx(unsigned char pdata *p, unsigned char b)
       2          {
       3   1          *p = b;
       4   1      }
    
    ASSEMBLY LISTING OF GENERATED OBJECT CODE
    
                 ; FUNCTION _movx (BEGIN)
                                               ; SOURCE LINE # 1
    ;---- Variable 'b' assigned to Register 'R5' ----
    ;---- Variable 'p' assigned to Register 'R0' ----
    0000 A807              MOV     R0,AR7
                                               ; SOURCE LINE # 2
                                               ; SOURCE LINE # 3
    0002 ED                MOV     A,R5
    0003 F2                MOVX    @R0,A
                                               ; SOURCE LINE # 4
    0004 22                RET
                 ; FUNCTION _movx (END)
    

Children
No data