;	WinSTon

;	PEA <ea>

;	XNZVC
;	-----

PUBLIC _pea_ea_long

;-----------------------------------------------------------------------
;PEA <ea>
_pea_ea_long PROC NEAR
	LEFFADDR_LONG									;Load <ea>
	sub		DWORD PTR _Regs[REG_A7*4],SIZE_LONG		;SP-=4
	mov		ebp,_Regs[REG_A7*4]						;SP
	MASK_24BIT_ADDR(ebp)							;as 24-bit address in PC memory

	SWAP_ENDIAN_LONG_EBX							;into wrong endian
	mov		DWORD PTR _STRam[ebp],ebx				;Save <ea>
	FRET
_pea_ea_long ENDP
