September 2017
Beginner to intermediate
290 pages
6h 58m
English
As usual, the main source file (in our case, crypto.asm) should begin with the output format specification, thus telling the assembler how to treat the code and sections when creating the output file. As we have mentioned earlier, the compile-time variable, ACTIVE_TARGET, is the one to be used for the selection of the proper code for the assembler to process.
The next step would be defining a macro that would conditionally generate the proper code sequence. Let's call it set_output_format:
macro set_output_format{ if ACTIVE_TARGET = TARGET_W32_DLL include 'win32a.inc' format PE DLL entry DllMain else if ACTIVE_TARGET = TARGET_W32_OBJ format MS COFF else if ACTIVE_TARGET = TARGET_W64_DLL include 'win64a.inc' format ...Read now
Unlock full access