Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 175 → Rev 176

/programs/develop/fasm/trunk/x86_64.inc
6008,8 → 6008,12
test ch,0Fh
jnz address_ok
calculate_relative_address:
mov edx,[address_high]
call calculate_relative_offset
mov [address_high],edx
cdq
cmp edx,[address_high]
jne value_out_of_range
mov edx,[symbol_identifier]
mov [address_symbol],edx
mov edx,eax
6016,7 → 6020,6
mov bx,0FF00h
address_ok:
ret
 
operand_16bit:
cmp [code_type],16
je size_prefix_ok
6146,8 → 6149,10
call store_segment_prefix_if_necessary
or bx,bx
jz address_immediate
cmp bx,0F000h
cmp bx,0F800h
je address_rip_based
cmp bx,0F400h
je address_eip_based
cmp bx,0FF00h
je address_relative
mov al,bl
6485,6 → 6490,9
or al,cl
stos word [edi]
jmp store_address_32bit_value
address_eip_based:
mov al,67h
stos byte [edi]
address_rip_based:
cmp [code_type],64
jne invalid_address