2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
; flat assembler core variables
|
2012-05-20 13:47:06 +02:00
|
|
|
; Copyright (c) 1999-2012, Tomasz Grysztar.
|
2006-01-03 10:43:31 +01:00
|
|
|
; All rights reserved.
|
|
|
|
|
|
|
|
; Variables which have to be set up by interface:
|
|
|
|
|
|
|
|
memory_start dd ?
|
|
|
|
memory_end dd ?
|
|
|
|
|
|
|
|
additional_memory dd ?
|
|
|
|
additional_memory_end dd ?
|
|
|
|
|
|
|
|
stack_limit dd ?
|
|
|
|
|
|
|
|
input_file dd ?
|
|
|
|
output_file dd ?
|
2008-12-30 21:21:32 +01:00
|
|
|
symbols_file dd ?
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
passes_limit dw ?
|
|
|
|
|
|
|
|
; Internal core variables:
|
|
|
|
|
|
|
|
current_pass dw ?
|
|
|
|
|
|
|
|
include_paths dd ?
|
|
|
|
free_additional_memory dd ?
|
|
|
|
source_start dd ?
|
|
|
|
code_start dd ?
|
|
|
|
code_size dd ?
|
|
|
|
real_code_size dd ?
|
|
|
|
written_size dd ?
|
|
|
|
headers_size dd ?
|
|
|
|
|
|
|
|
current_line dd ?
|
|
|
|
macro_line dd ?
|
|
|
|
macro_block dd ?
|
|
|
|
macro_block_line dd ?
|
|
|
|
macro_block_line_number dd ?
|
|
|
|
macro_symbols dd ?
|
|
|
|
struc_name dd ?
|
|
|
|
struc_label dd ?
|
|
|
|
instant_macro_start dd ?
|
|
|
|
parameters_end dd ?
|
|
|
|
locals_counter rb 8
|
|
|
|
current_locals_prefix dd ?
|
|
|
|
anonymous_reverse dd ?
|
|
|
|
anonymous_forward dd ?
|
|
|
|
labels_list dd ?
|
|
|
|
label_hash dd ?
|
|
|
|
label_leaf dd ?
|
|
|
|
hash_tree dd ?
|
|
|
|
org_origin dq ?
|
|
|
|
org_registers dd ?
|
|
|
|
org_symbol dd ?
|
2008-12-30 21:21:32 +01:00
|
|
|
org_start dd ?
|
2006-01-03 10:43:31 +01:00
|
|
|
undefined_data_start dd ?
|
|
|
|
undefined_data_end dd ?
|
|
|
|
counter dd ?
|
|
|
|
counter_limit dd ?
|
2007-12-31 00:34:37 +01:00
|
|
|
error_info dd ?
|
2006-01-03 10:43:31 +01:00
|
|
|
error_line dd ?
|
|
|
|
error dd ?
|
|
|
|
display_buffer dd ?
|
|
|
|
structures_buffer dd ?
|
|
|
|
number_start dd ?
|
|
|
|
current_offset dd ?
|
|
|
|
value dq ?
|
|
|
|
fp_value rd 8
|
|
|
|
adjustment dq ?
|
|
|
|
symbol_identifier dd ?
|
|
|
|
address_symbol dd ?
|
|
|
|
address_high dd ?
|
|
|
|
format_flags dd ?
|
2006-07-28 15:39:16 +02:00
|
|
|
resolver_flags dd ?
|
2006-01-03 10:43:31 +01:00
|
|
|
symbols_stream dd ?
|
|
|
|
number_of_relocations dd ?
|
|
|
|
number_of_sections dd ?
|
|
|
|
stub_size dd ?
|
|
|
|
stub_file dd ?
|
|
|
|
current_section dd ?
|
|
|
|
machine dw ?
|
|
|
|
subsystem dw ?
|
|
|
|
subsystem_version dd ?
|
|
|
|
image_base dd ?
|
|
|
|
image_base_high dd ?
|
|
|
|
resource_data dd ?
|
|
|
|
resource_size dd ?
|
2011-10-13 21:06:08 +02:00
|
|
|
actual_fixups_size dd ?
|
|
|
|
reserved_fixups dd ?
|
|
|
|
reserved_fixups_size dd ?
|
|
|
|
last_fixup_base dd ?
|
2006-07-28 15:39:16 +02:00
|
|
|
parenthesis_stack dd ?
|
|
|
|
blocks_stack dd ?
|
2006-12-21 07:34:09 +01:00
|
|
|
parsed_lines dd ?
|
|
|
|
logical_value_parentheses dd ?
|
2007-08-10 06:45:04 +02:00
|
|
|
file_extension dd ?
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
operand_size db ?
|
2008-01-31 22:32:32 +01:00
|
|
|
size_override db ?
|
|
|
|
operand_prefix db ?
|
2009-02-20 14:05:49 +01:00
|
|
|
opcode_prefix db ?
|
2011-10-13 21:06:08 +02:00
|
|
|
rex_prefix db ?
|
|
|
|
vex_required db ?
|
|
|
|
vex_register db ?
|
|
|
|
immediate_size db ?
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
base_code db ?
|
|
|
|
extended_code db ?
|
2006-10-11 00:15:57 +02:00
|
|
|
supplemental_code db ?
|
2006-01-03 10:43:31 +01:00
|
|
|
postbyte_register db ?
|
2011-10-13 21:06:08 +02:00
|
|
|
segment_register db ?
|
|
|
|
xop_opcode_map db ?
|
2008-01-31 22:32:32 +01:00
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
mmx_size db ?
|
|
|
|
jump_type db ?
|
2006-07-28 15:39:16 +02:00
|
|
|
push_size db ?
|
2008-01-31 22:32:32 +01:00
|
|
|
value_size db ?
|
|
|
|
address_size db ?
|
|
|
|
size_declared db ?
|
2011-10-13 21:06:08 +02:00
|
|
|
|
2008-01-31 22:32:32 +01:00
|
|
|
value_undefined db ?
|
|
|
|
value_type db ?
|
2011-10-13 21:06:08 +02:00
|
|
|
fp_sign db ?
|
|
|
|
fp_format db ?
|
2008-01-31 22:32:32 +01:00
|
|
|
compare_type db ?
|
2006-12-21 07:34:09 +01:00
|
|
|
logical_value_wrapping db ?
|
2008-01-31 22:32:32 +01:00
|
|
|
next_pass_needed db ?
|
2011-10-13 21:06:08 +02:00
|
|
|
output_format db ?
|
|
|
|
labels_type db ?
|
|
|
|
code_type db ?
|
|
|
|
virtual_data db ?
|
|
|
|
|
2008-01-31 22:32:32 +01:00
|
|
|
macro_status db ?
|
|
|
|
prefixed_instruction db ?
|
2011-10-13 21:06:08 +02:00
|
|
|
formatter_symbols_allowed db ?
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
characters rb 100h
|
|
|
|
converted rb 100h
|
2007-12-31 00:34:37 +01:00
|
|
|
message rb 200h
|