1.1.7 Output formats



By default, when there is no format directive in source file, flat assembler simply puts generated instruction codes into output, creating this way flat binary file. By default it generates 16–bit code, but you can always turn it into the 16–bit or 32–bit mode by using use16 or use32 directive. Some of the output formats switch into 32–bit mode, when selected – more information about formats which you can choose can be found in  2.4.



The extension of destination file is chosen automatically by compiler, depending on the selected output format.


All output code is always in the order in which it was entered into the source file.



1.2 Assembly syntax



The information provided below is intended mainly for the assembly language programmers that have been using some other assembly compilers before. If you are beginner, you should look for the assembly programming tutorials.


Flat assembler by default uses the Intel syntax for the assembly instructions, although you can customize it using the preprocessor capabilities (macroinstructions and symbolic constants).


It also has its own set of the directives – the instructions for

compiler.



All symbols defined inside the sources are case–sensitive.



Operator   Bits    Bytes



byte        8       1

word        16       2

dword       32       4

fword       48        6

pword       48        6

qword        64       8

tbyte       80       10

tword       80       10

dqword      128      16

xword       128      16

qqword      256      32

yword       256      32

dqqword      512     64

zword       512      64


Table 1.8: Size operators.