compiling the assembly code




type your code inside the text area, and click compile button. you will be asked for a place where to save the compiled file.
after successful compilation you can click emulate button to load the compiled file in emulator.


the output file type directives:


	     #make_com#
	     #make_bin#
	     #make_boot#
	     #make_exe#
you can insert these directives in the source code to specify the required output type for the file. only if compiler cannot determine the output type automatically and it when it cannot find any of these directives it may ask you for output type before creating the file.

there is virtually no difference between how .com and .bin are assembled because these files are raw binary files, but .exe file has a special header in the beginning of the file that is used by the operating system to determine some properties of the executable file.



description of output file types:



error processing

assembly language compiler (or assembler) reports about errors in a separate information window:



MOV DS, 100 - is illegal instruction because segment registers cannot be set directly, general purpose register should be used, for example
MOV AX, 100
MOV DS, AX


MOV AL, 300 - is illegal instruction because AL register has only 8 bits, and thus maximum value for it is 255 (or 11111111b), and the minimum is -128.





When saving an assembled file, compiler also saves 2 other files that are later used by the emulator to show original source code when you run the binary executable, and select corresponding lines. Very often the original code differs from the disabled code because there are no comments, no segment and no variable declarations. Compiler directives produce no binary code, but everything is converted to pure machine code. Sometimes a single original instruction is assembled into several machine code instructions, this is done mainly for the compatibility with original 8086 microprocessor (for example ROL AL, 5 is assembled into five sequential ROL AL, 1 instructions).