Home     Projects     Micro     Tools     Delphi     Developer     Site map
HOME  
 
 
       
Decrement DPTR

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

Copyright(c) 2005-2008 sixca.com, All right reserved.
Best view @ 800X600, IE 6.0 up   
Terms of Use  Privacy Policy