2024-10-06 22:06:10 -04:00
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
2024-10-07 01:43:30 -04:00
|
|
|
|
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";
|
2024-10-06 22:06:10 -04:00
|
|
|
|
hexdump -C ./result.bin;
|
2024-10-07 01:43:30 -04:00
|
|
|
|
echo -e "";
|