DOWNLOAD MAIN
;******************************************
; Description:
; Exchange R0/R1 And DPTR
;
; Entry Requirements:
; DPTR Has 1st Value
; R0/1 Has 2nd Value
;
; On Exit:
; DPTR <-> R0/1
;
; Affected:
; DPTR, R0, R1
;
; Stack:
; 1 Bytes
;
; Comments:
; None
;
UTIL_DPTRR01
push acc
mov a,dpl
mov dpl,r1
mov r1,a
mov a,dph
mov dph,r0
mov r0,a
pop acc
ret
|