Skip to content

jraleman/NASM_AssemblyPractice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

NASM_AssemblyPractice

...

Setup

Depending on your system, follow the steps below:

Mac OS X

Make sure you have nasm installed, and follow the next steps.

Compile

nasm -f macho64 asm/{file}.s

Link

Depending on the file, you might need to run one of the following:

ld -arch x86_64 -macosx_version_min 10.9.0 -no_pie -lSystem -e _start -o a.out asm/{file}.o

If there is a main label, remove the -e _start flag:

ld -arch x86_64 -macosx_version_min 10.9.0 -no_pie -lSystem -o a.out asm/{file}.o

And if you wish to mix c and s, you can run the following:

gcc c/{file}.c asm/{file}.o

Execute

And just execute with:

./a.out

Linux

Windows

  • See Linux

Sauce

About

A series of short assembly code files, just to refresh some of the concepts :)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published