;	WinSTon

;	CMP <ea>,Dn

;	XNZVC
;	-****

PUBLIC _cmp_ea_dn_byte
PUBLIC _cmp_ea_dn_word
PUBLIC _cmp_ea_dn_long

;-----------------------------------------------------------------------
;CMP.B <ea>,Dn
_cmp_ea_dn_byte PROC NEAR
	EFFADDR_READ									;Read <ea>
	mov		edx,DECODE_2[ecx]						;DReg
	cmp		[edx],bl								;Compare, set condition codes
	SET_NZVC
_cmp_ea_dn_byte ENDP

;CMP.W <ea>,Dn
_cmp_ea_dn_word PROC NEAR
	EFFADDR_READ									;Read <ea>
	mov		edx,DECODE_2[ecx]						;DReg
	cmp		[edx],bx								;Compare, set condition codes
	SET_NZVC
_cmp_ea_dn_word ENDP

;CMP.L <ea>,Dn
_cmp_ea_dn_long PROC NEAR
	EFFADDR_READ									;Read <ea>
	mov		edx,DECODE_2[ecx]						;DReg
	cmp		[edx],ebx								;Compare, set condition codes
	SET_NZVC
_cmp_ea_dn_long ENDP
