Skip to content

Wild-W/snake_asm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snake written in x86-64 with NASM

It's the hit game snake! Written completely from scratch in assembly only using the Windows operating system APIs.

Why does the code suck?

I've never built an entire application in assembly before. In addition, x86-64 isn't very human friendly in comparison to simpler architectures.

So why build it in x86-64?

To become more familiar with the architecture so I am better at reverse engineering 64-bit applications.

How to build

Make sure you have

Then run this in command prompt

nasm -f win64 snake.asm && gcc snake.obj -o snake.exe -luser32 -lkernel32 -lgdi32 -Wl,-subsystem,windows && snake.exe