Changeset 564 in svn for trunk/mkopcode_spec.awk
- Timestamp:
- 2008-08-17T14:04:25Z (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mkopcode_spec.awk
r522 r564 10 10 /OPDEF/ { 11 11 if (started) { 12 sub(/".*"/, "")13 12 if (!match($0, /EXT_([^ |]+).*OP[1S]_([^ |]+).*OP2_([^ |]+).*RES_([^ |)]+).*/, array)) { 14 13 print "error" $0 15 14 exit 16 15 } 17 comment= "";18 if (match($0, /\/\* (\d+) \*\//, comments)) {19 comment = comments[1];16 id = ""; 17 if (match($0, /\/\* *([0-9]+) *\*\//, m)) { 18 id = m[1]; 20 19 } 21 printf "\tOPSPEC(%10s, %10s, %10s, %10s)%s\n", array[1], array[2], array[3], array[4], comment; 20 name = ""; 21 if (match($0, /"([^"]+)"/, m)) { 22 name = m[1]; 23 } 24 printf "\tOPSPEC(%10s, %10s, %10s, %10s) /* %s %s */\n", array[1], array[2], array[3], array[4], id, name; 22 25 next 23 26 }
Note: See TracChangeset
for help on using the changeset viewer.