1991-09-05 11:33:24 +00:00
|
|
|
EM_TABLE=$1
|
|
|
|
argtype=$2
|
|
|
|
list=`$argtype w $EM_TABLE`
|
1988-09-12 14:30:22 +00:00
|
|
|
echo "switch(p->em_opcode) {"
|
|
|
|
for i in $list
|
|
|
|
do
|
|
|
|
cat << EOF
|
|
|
|
case op_$i:
|
|
|
|
C_${i}_narg();
|
|
|
|
break;
|
|
|
|
EOF
|
|
|
|
done
|
|
|
|
cat << EOF
|
|
|
|
default: C_error = "Illegal mnemonic";
|
|
|
|
}
|
|
|
|
EOF
|