From bbc9c9d2103e4954ffb74a5c43a5c19af4b99045 Mon Sep 17 00:00:00 2001 From: Connor Bren <39774593+Wild-W@users.noreply.github.com> Date: Tue, 20 Aug 2024 00:27:47 -0600 Subject: [PATCH] Update README.md --- README.md | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 617912c..f9a9049 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,26 @@ # Snake written in x86-64 with NASM -Or at least it will be soon. +

+ +

+ +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. \ No newline at end of file +Then run this in command prompt +```sh +nasm -f win64 snake.asm && gcc snake.obj -o snake.exe -luser32 -lkernel32 -lgdi32 && snake.exe +```