Skip to content

Instantly share code, notes, and snippets.

@erique
Last active June 18, 2021 09:53
Show Gist options
  • Save erique/e74f607efa369cc0c34d77179dce825a to your computer and use it in GitHub Desktop.
Save erique/e74f607efa369cc0c34d77179dce825a to your computer and use it in GitHub Desktop.
split a 512kb kickstart, and flash via minipro, from bash
xxd -c 4 -g 1 kick.rom | awk '{printf $5 $4 "\n"}' | xxd -p -r > test-lo.rom && cat test-lo.rom test-lo.rom > test-lo.bin
xxd -c 4 -g 1 kick.rom | awk '{printf $3 $2 "\n"}' | xxd -p -r > test-hi.rom && cat test-hi.rom test-hi.rom > test-hi.bin
minipro -y -p "AM29F400BB@TSOP48" --write test-hi.bin
minipro -y -p "AM29F400BB@TSOP48" --write test-lo.bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment