DOWNLOAD MAIN
;******************************************
; Description:
; Decrement DPTR. CY == 1 If Underflow
;
; Entry Requirements:
; DPTR Has Value To Decrement
;
; On Exit:
; DPTR = DPTR - 1, CY Set Accordingly
;
; Affected:
; PSW.CY, DPTR
;
; Stack:
; 1 Bytes
;
; Comments:
; None
;
UTIL_DPTRDEC
push acc
clr c
mov a,dpl
subb a,#1
mov dpl,a
mov a,dph
subb a,#0
mov dph,a
pop acc
ret
|