;	WinSTon

;	EXT Dn

;	XNZVC
;	-**00

PUBLIC _ext_dn_word
PUBLIC _ext_dn_long

;-----------------------------------------------------------------------
;EXT.W Dn
_ext_dn_word PROC NEAR
	mov		edx,DECODE_1[ecx]						;DReg
	xor		al,al									;Clear NZVC(ignore X)
	movsx	bx,BYTE PTR [edx]						;Sign extend to 16-bits
	mov		WORD PTR [edx],bx						;Store
	or		bx,bx									;Set condition codes
	SET_NZ
_ext_dn_word ENDP

;EXT.L Dn
_ext_dn_long PROC NEAR
	mov		edx,DECODE_1[ecx]						;DReg
	xor		al,al									;Clear NZVC(ignore X)
	movsx	ebx,WORD PTR [edx]						;Sign extend to 32-bits
	mov		[edx],ebx								;Store
	or		ebx,ebx									;Set condition codes
	SET_NZ
_ext_dn_long ENDP
