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


Ignore:
Timestamp:
04/11/11 09:54:25 (13 years ago)
Author:
pntsvt00
Message:

modificati i file per la compilazione. boot.s linkato a 0xFFF0000020

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/dump2hex.php

    r30 r36  
    3131  while (!feof($fp)) { 
    3232    $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); 
    3737    $caratteri = strlen($opcode1); 
    3838    if($caratteri != 0){ 
     
    4444    } 
    4545    else{ 
    46         for($i=0; $i<1; $i++) fgets($fp); 
     46        echo "//".$line; 
     47        $line = fgets($fp); 
     48        echo "//".$line; 
    4749     }  
    4850    } 
Note: See TracChangeset for help on using the changeset viewer.