Skip to content

Instantly share code, notes, and snippets.

10 for y=-16 to 16
20 for x=-16 to 5
30 ca=x*.13
40 cb=y*.075
50 a=ca:b=cb
70 for i=0 to 94
80 t=a*a-b*b+ca
90 b=2*a*b+cb:a=t
110 if (a*a+b*b)>4 then goto 150
120 next i
@SegHaxx
SegHaxx / pcbooter.s
Created November 30, 2021 22:03
PC bootsector string spewer in NASM
; vi:ft=nasm
cpu 8086
org 0x0
jmp start
rulz db 'seg rulz ok ',0
start: cli ; disable interrupts because lolbugs
mov ax,0x7c0 ; BIOS loads code at 0000:7C00
@SegHaxx
SegHaxx / dos.s
Created December 1, 2021 21:54
NASM string spewer for DOS
; vi:ft=nasm
cpu 8086
org 100h
section .text
xor bx,bx ; attrib
mov cx,1 ; just one thanks
.again: inc bx ; next attrib
@SegHaxx
SegHaxx / Install MSYS2.bat
Created May 8, 2024 00:59
My MSYS2 install script
@echo off
rem elevate -w choco install -y msys2 --params "/NoUpdate /InstallDir:C:\msys64"
cd c:\msys64
if %errorlevel% neq 0 exit /b %errorlevel%
rem Use windows home directory
usr\bin\sed.exe -i 's/^\(db_home: \)\(cygwin.*\)$/\1windows/' etc\nsswitch.conf