From 94294b0b80c6998b82d877e73d6bee0a4613f5b0 Mon Sep 17 00:00:00 2001 From: heavyiron Date: Fri, 1 Dec 2006 14:41:13 +0000 Subject: [PATCH] fasm 1.67.16 git-svn-id: svn://kolibrios.org@226 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/fasm/trunk/expressi.inc | 16 +++++++++++++++- programs/develop/fasm/trunk/version.inc | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/programs/develop/fasm/trunk/expressi.inc b/programs/develop/fasm/trunk/expressi.inc index ea8814ea73..9e0b387acf 100644 --- a/programs/develop/fasm/trunk/expressi.inc +++ b/programs/develop/fasm/trunk/expressi.inc @@ -180,7 +180,7 @@ get_number: cmp byte [ebx],'$' je pascal_hex_number cmp word [ebx],'0x' - je get_hex_number + je c_hex_number mov al,[esi] dec esi cmp al,'h' @@ -279,6 +279,9 @@ get_number: jz get_bin_digit or ebp,-1 jmp get_bin_digit + c_hex_number: + cmp cl,2 + je bad_number pascal_hex_number: cmp cl,1 je bad_number @@ -2135,6 +2138,17 @@ get_address_value: calculate_relative_offset: cmp [value_undefined],0 jne relative_offset_ok + test bh,bh + setne ch + cmp bx,word [org_registers] + je origin_registers_ok + xchg bh,bl + xchg ch,cl + cmp bx,word [org_registers] + jne invalid_value + origin_registers_ok: + cmp cx,word [org_registers+2] + jne invalid_value add eax,dword [org_origin] adc edx,dword [org_origin+4] sub eax,edi diff --git a/programs/develop/fasm/trunk/version.inc b/programs/develop/fasm/trunk/version.inc index d5204bc0a7..e249cdcb62 100644 --- a/programs/develop/fasm/trunk/version.inc +++ b/programs/develop/fasm/trunk/version.inc @@ -33,7 +33,7 @@ ; cannot simply be copied and put under another distribution licence ; (including the GNU Public Licence). -VERSION_STRING equ "1.67.15" +VERSION_STRING equ "1.67.16" VERSION_MAJOR = 1 VERSION_MINOR = 67