Skip to content

ksw2000/x64-NASM-Practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x64-NASM-Practice

My practice and notes for Intel x86_64 NASM on Windows.

Quick start

# setting UTF-8 encoding
chcp 65001

# assemble
nasm -f win64 {filename}.asm

# link by goLink
goLink /console {filename}.obj /entry main msvcrt.dll

# or by gcc
gcc {filename}.obj -o {output}.exe

or use batch file

# link by goLink
./run.cmd {filename_without_extension}

# link by gcc
./run-gcc.cmd {filename_without_extension}
  1. Download assembler - NASM
  2. Download linker - GCC or GoLink
  3. You can download nasm.exe and GoLink.exe is in /tools instead.
  4. UTF8 encoding problem See on stackoverflow

Useful Links

About

NASM on x86_64 Windows

Topics

Resources

Stars

Watchers

Forks