Programming with FASM – first steps with x86-64 example.
This tutorial follows the old tutorial in the FASM programming series, see Programming with FASM – first steps. The FASM manual that follows this example can be found here. This is an example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | format PE64 GUI include "win64ax.inc" .data Caption db 'Win64 assembly program',0 Message db 'Hello World!',0 .code start: xor r9d,r9d lea r8,[Caption] lea rdx,[Message] xor rcx,rcx call [MessageBox] mov ecx,eax invoke ExitProcess,0 .end start |
As you can see is need to set the format and included file: PE64 GUI and win64ax.inc. The .data and .code… Read More »