Changeset 566 for trunk/mkopcode_spec.awk
- Timestamp:
- 08/17/2008 02:19:25 PM (4 months ago)
- Files:
-
- 1 modified
-
trunk/mkopcode_spec.awk (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/mkopcode_spec.awk
r565 r566 10 10 /OPDEF/ { 11 11 if (started) { 12 sub(/".*"/, "") 12 name = ""; 13 if (match($0, /"([^"]+)"/, m)) { 14 name = m[1]; 15 } 16 sub(/"[^"]*"/, ""); 13 17 if (!match($0, /EXT_([^ |]+).*OP[1S]_([^ |]+).*OP2_([^ |]+).*RES_([^ |)]+).*/, array)) { 14 18 print "error" $0 15 19 exit 16 20 } 17 comment= "";18 if (match($0, /\/\* (\d+)\*\//, comments)) {19 comment= comments[1];21 id = ""; 22 if (match($0, /\/\* *([0-9]+) *\*\//, comments)) { 23 id = comments[1]; 20 24 } 21 printf "\tOPSPEC(%10s, %10s, %10s, %10s) %s\n", array[1], array[2], array[3], array[4], comment;25 printf "\tOPSPEC(%10s, %10s, %10s, %10s) /* %s %-30s */\n", array[1], array[2], array[3], array[4], id, name; 22 26 next 23 27 }

