Skip to content

Snake game, writing in Assembler works in Windows

License

Notifications You must be signed in to change notification settings

mov-rax-rbx/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snake

Snake game, writing in Assembler works in Windows

Dependecies

Start

Build game

> PATH_TO_NASM -f win64 console_win32_snake.asm -o console_win32_snake.obj

Link

> PATH_TO_GOLINK /entry:start /console kernel32.dll user32.dll console_win32_snake.obj

Or use .bat file in repo and change path for nasm and GoLink

@echo off

@REM path to NASM + some flags
SET NASM=..\nasm -O3
@REM path to golink
SET GOLINK=..\golink

%NASM% -f win64 console_win32_snake.asm -o console_win32_snake.obj
%GOLINK% /entry:start /console kernel32.dll user32.dll console_win32_snake.obj

pause
exit

Controls

, , , - move snake.