;	WinSTon

;	BRA <label>

;	XNZVC
;	-----

PUBLIC _bra_s
PUBLIC _bra_w

;-----------------------------------------------------------------------
;BRA.S <label> (8-bit offset)
_bra_s PROC NEAR
	add		esi,DECODE_1[ecx]						;PC += 8-bit offset, sign extended
	FRET
_bra_s ENDP

;-----------------------------------------------------------------------
;BRA.W <label>
_bra_w PROC NEAR
	mov		bx,WORD PTR [esi]						;16-bit offset(wrong endian)
	SWAP_ENDIAN_WORD_BX
	movsx	ebx,bx									;sign extended
	add		esi,ebx									;PC += (short int)Offset
	FRET
_bra_w ENDP
