Changeset 19 in XOpenSparcT1 for trunk/tools/dump2hex.php


Ignore:
Timestamp:
03/25/11 18:21:45 (13 years ago)
Author:
pntsvt00
Message:

ora ho 2 sorgenti SPARC-V9, memory.hex e memory_hello.hex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/dump2hex.php

    r17 r19  
    66 
    77  // Discard first lines 
    8   for($i=0; $i<6; $i++) fgets($fp); 
     8  for($i=0; $i<7; $i++) fgets($fp); 
    99 
    1010  // Print only the opcodes to stdout 
     
    1717    }*/ 
    1818 
    19     $opcode = substr($line, 8, 4); 
     19    $opcode = substr($line, 6, 2); 
     20    $opcode2 = substr($line, 9, 2); 
    2021    $caratteri = strlen($opcode); 
    2122    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"; 
    2527    } 
    2628    else{ 
Note: See TracChangeset for help on using the changeset viewer.