Home     Projects     Micro     Tools     Delphi     Developer     Site map
HOME  
 
 
       
Subtract 'DPTR' From 0

DOWNLOAD    MAIN
;******************************************
;  Description:
;	Subtract 'DPTR' From 0,
;	 Setting Carry If DPTR Underflows
;
;  Entry Requirements:
;	DPTR Has Value To Perform 2's Complement On
;
;  On Exit:
;	DPTR = 0 - DPTR
;
;  Affected:
;	PSW.CY
;
;  Stack:
;	1 Bytes
;
;  Comments:
;	None
;
UTIL_DPTR2C	
		push	acc
		clr	c
		clr	a
		subb	a,dpl	
		mov	dpl,a	
		clr	a
		subb	a,dph
		mov	dph,a
		pop	acc
		ret

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