URL
https://opencores.org/ocsvn/zet86/zet86/trunk
Subversion Repositories zet86
[/] [zet86/] [trunk/] [bin/] [vdt2rom] - Rev 2
Go to most recent revision | Compare with Previous | Blame | View Log
#!/bin/bash
#
# USAGE: vdt2rom [-hex] file.vdt
#
if [ $# -eq 1 ]
then
sed -e 's/\/\/\(.\)*//' -e 's/_//g' -e 's/[xsdm]/0/g' -e '/^\([\ \t]\)*$/d' -e 's/\ //g' $1
else
sed -e 's/\/\/\(.\)*//' -e 's/_//g' -e '/^\([\ \t]\)*$/d' -e 's/\ //g' $2
fi
Go to most recent revision | Compare with Previous | Blame | View Log