相关代码 |
|
;FUNCTION NAME:DATA_ADD_4BYTE_EXTERNAL ;FUNCTION:ADD 4 BYTES ;(R0+3)(R0+2)(R0+1)(R0)=(R0+3)(R0+2)(R0+1)(R0)+(DPTR+3)(DPTR+2)(DPTR+1)(DPTR) ; DATA_ADD_4BYTE_EXTERNAL MOV R2,#04H CLR C $1 MOVX A,@DPTR ADDC A,@R0 MOV @R0,A INC R0 INC DPTR DJNZ R2,$1 RET ;