5 lines
373 B
Bash
5 lines
373 B
Bash
#!/bin/bash
|
|
cat z80opcodelist.txt | tr -s ' ' | awk -F ' ' '{{printf "0x%s %s",$1,$2;} if ($3!="-"){printf " "$3} printf "\n"}' | \
|
|
sed -r -e 's/,/, /' -e 's/&0000/nn/' -e 's/&00/n/' -e 's/&4546/d/' -e 's/&[0-9][0-9]//' -e 's/\*\*\*\* //' | perl -pe 's/(?<=[AS][DUB][DBC]) A,//' > z80opcodelist.form.txt
|
|
|
|
python3 decoder_generator.py -l | grep -v -Ff z80opcodelist.form.txt |