Handmade Hero»Forums»Code
16 posts
asm development environment
rathersleepy
You may find this useful. The (free) source code download for this book:
Modern X86 Assembly Language Programming 32-bit, 64-bit, SSE, and AVX
includes appendix A which shows how to get up and running with assembly in visual studio 2013.


Great, thank you!

This book can be useful too :
X86 Assembly Language and C Fundamentals Hardcover – January 22, 2013
http://www.amazon.com/X86-Assembl...age-C-Fundamentals/dp/1466568240/
16 posts
asm development environment
Assembly Language for x86 Processors, 7th edition March 2014
http://kipirvine.com/asm/

Excellent book!
Dejan
25 posts
asm development environment
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:
1
ml64 win32_handmade.asm /link /subsystem:windows /defaultlib:kernel32.lib /defaultlib:user32.lib /entry:Start


debug compile with:
1
ml64 /Zi win32_handmade.asm /link /subsystem:windows /defaultlib:kernel32.lib /defaultlib:user32.lib /entry:Start


happy hacking!