Changeset 36 in XOpenSparcT1 for trunk/tools/dump2hex.php
- Timestamp:
- 04/11/11 09:54:25 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/dump2hex.php
r30 r36 31 31 while (!feof($fp)) { 32 32 $line = fgets($fp); 33 $opcode1 = substr($line, 6, 2);34 $opcode2 = substr($line, 9, 2);35 $opcode3 = substr($line, 12, 2);36 $opcode4 = substr($line, 15, 2);33 $opcode1 = substr($line, 14, 2); 34 $opcode2 = substr($line, 17, 2); 35 $opcode3 = substr($line, 20, 2); 36 $opcode4 = substr($line, 23, 2); 37 37 $caratteri = strlen($opcode1); 38 38 if($caratteri != 0){ … … 44 44 } 45 45 else{ 46 for($i=0; $i<1; $i++) fgets($fp); 46 echo "//".$line; 47 $line = fgets($fp); 48 echo "//".$line; 47 49 } 48 50 }
Note: See TracChangeset
for help on using the changeset viewer.