-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |