OpenCores
URL https://opencores.org/ocsvn/m1_core/m1_core/trunk

Subversion Repositories m1_core

[/] [m1_core/] [trunk/] [tools/] [bin/] [dump2hex.php] - Blame information for rev 57

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 fafa1971
#!/usr/bin/php -q
2
<?php
3
 
4
  // Open the stdin
5
  $fp fopen("php://stdin""r");
6
 
7
  // Discard first lines
8
  for($i=0$i<6$i++) fgets($fp);
9
 
10
  // Print only the opcodes to stdout
11
  while (!feof($fp)) {
12
    $line fgets($fp);
13
    $opcode substr($line68);
14
    $caratteri strlen($opcode);
15
    if($caratteri != 0){
16
        echo $opcode."\n";
17
    }
18
    else{
19
        for($i=0$i<1$i++) fgets($fp);
20
     } 
21
    }
22
 
23
  // Close the input file
24
  fclose($fp);
25
 
26
?>
27
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.