Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Wild-W authored Aug 20, 2024
1 parent a334f7a commit bbc9c9d
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
# Snake written in x86-64 with NASM

Or at least it will be soon.
<p align="center">
<img src="https://github.com/user-attachments/assets/1e847582-f417-430d-b8bd-3dc17b13bbde" />
</p>

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 software in assembly before. In addition, x86-64 isn't very human friendly in comparison to simpler architectures.
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

## So why build it in x86-64?
Make sure you have
- [Netwide assembler](https://nasm.us/)
- Any 64-bit compatible linker (like [gcc](https://gcc.gnu.org/))

To become more familiar with the architecture so I am better at reverse engineering 64-bit applications.
Then run this in command prompt
```sh
nasm -f win64 snake.asm && gcc snake.obj -o snake.exe -luser32 -lkernel32 -lgdi32 && snake.exe
```

0 comments on commit bbc9c9d

Please # to comment.