Changeset 19 in XOpenSparcT1 for trunk/tools
- Timestamp:
- 03/25/11 18:21:45 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/dump2hex.php
r17 r19 6 6 7 7 // Discard first lines 8 for($i=0; $i< 6; $i++) fgets($fp);8 for($i=0; $i<7; $i++) fgets($fp); 9 9 10 10 // Print only the opcodes to stdout … … 17 17 }*/ 18 18 19 $opcode = substr($line, 8, 4); 19 $opcode = substr($line, 6, 2); 20 $opcode2 = substr($line, 9, 2); 20 21 $caratteri = strlen($opcode); 21 22 if($caratteri != 0){ 22 echo $opcode."\n"; 23 $opcode = substr($line, 12, 4); 24 echo $opcode."\n"; 23 echo $opcode.$opcode2."\n"; 24 $opcode = substr($line, 12, 2); 25 $opcode2 = substr($line, 15, 2); 26 echo $opcode.$opcode2."\n"; 25 27 } 26 28 else{
Note: See TracChangeset
for help on using the changeset viewer.