1991-08-26 16:50:25 +00:00
|
|
|
EM_TABLE=$1
|
1987-01-06 11:05:35 +00:00
|
|
|
list=`./argtype w $EM_TABLE`
|
1987-06-30 12:55:30 +00:00
|
|
|
echo "switch(p->em_opcode) {"
|
1987-01-06 11:05:35 +00:00
|
|
|
for i in $list
|
|
|
|
do
|
|
|
|
cat << EOF
|
|
|
|
case op_$i:
|
|
|
|
C_${i}_narg();
|
|
|
|
break;
|
|
|
|
EOF
|
|
|
|
done
|
|
|
|
cat << EOF
|
|
|
|
default: EM_error = "Illegal mnemonic";
|
|
|
|
}
|
|
|
|
EOF
|