#!/usr/bin/env bash set -e rm *.bin *.rom vasm6502_oldstyle fuzzy.asm -dotdir -wdc02 -ldots -Fbin -o fuzzy.rom &> /dev/null; echo -e "\nʕ·ᴥ·ʔ- source text:\n"; cat program.inc; cat fuzzy.rom | ./george > compiled.bin; dd skip=16384 count=500 if=compiled.bin of=compiled.rom bs=1 &> /dev/null; truncate -s 32k compiled.rom &> /dev/null; printf '\x80\x00\x00' | dd of=compiled.rom bs=1 seek=32765 count=3 conv=notrunc &> /dev/null; cat compiled.rom | ./george > result.bin; echo -e "\n\nʕ·ᴥ·ʔ- compiled program result:\n"; hexdump -C ./result.bin; echo -e "";