Skip to content

Instantly share code, notes, and snippets.

View koteyur's full-sized avatar
◼️

Yury Kotov koteyur

◼️
View GitHub Profile
@koteyur
koteyur / nasm_ex_sum.asm
Last active January 27, 2021 21:34
NASM Win32 example
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; NASM Win32 example: print result of X + Y
;
; Compilation:
; 1. Download NASM: https://www.nasm.us/
; Recommended version: nasm-2.14.02-win64.zip
; 2. Download Tiny C Compiler: http://tinycc.org/
; Recommended version: tcc-0.9.27-win64-bin.zip
; 3. Unpack it. For example: c:\soft\tcc, c:\soft\nasm
; 4. Compile: c:\soft\nasm\nasm.exe -felf nasm_ex_sum.asm
@koteyur
koteyur / EIScript.g4
Last active March 17, 2020 11:36
Fix for loop
grammar EIScript;
script
: block* ;
block
: globalVars
| declareScript
| scriptBlock
| worldScript