ambiguous.panda
can anyone recommend an asm tool chain for building from windows
ml64 is the 64 bit assembler packaged with Visual Studio community edition. It is masm renamed and updated for 64 bit and modern instruction sets. It can do debug builds with /Zi that create PDBs files that can be used with devenv for debugging.
Its pretty easy to get started with it. Eg This is Handmade Hero Ep1.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 | extrn ExitProcess: PROC
extrn MessageBoxA: PROC
.data
caption db 'Handmade Hero', 0
message db 'This is Handmade Hero.', 0
.code
Start PROC
sub rsp, 28h ; shadow space, 16 byte aligned
mov rcx, 0 ; HWND_DESKTOP
lea rdx, message ; lpText
lea r8, caption ; lpCaption
mov r9d, 40h ; MB_OK | MB_ICONINFORMATION
call MessageBoxA
mov ecx, eax ; exit code
call ExitProcess
Start ENDP
End
|
release compile with:
| ml64 win32_handmade.asm /link /subsystem:windows /defaultlib:kernel32.lib /defaultlib:user32.lib /entry:Start
|
debug compile with:
| ml64 /Zi win32_handmade.asm /link /subsystem:windows /defaultlib:kernel32.lib /defaultlib:user32.lib /entry:Start
|
happy hacking!