|
@@ -0,0 +1,36 @@
|
|
|
+package QuickVerifyCrap;
|
|
|
+
|
|
|
+import java.io.*;
|
|
|
+
|
|
|
+public class HexHennenGegacker {
|
|
|
+ public static void main(String[] args) throws IOException {
|
|
|
+ String s = "D:\\LOA\\000030\\flash-hexchange";
|
|
|
+ BufferedReader br = new BufferedReader(new FileReader(s));
|
|
|
+ PrintWriter w = new PrintWriter(new FileWriter("D:\\LOA\\000030\\flash-hexchange.txt"));
|
|
|
+ int i=0;
|
|
|
+ String line = br.readLine();
|
|
|
+ while(line !=null)
|
|
|
+ {
|
|
|
+ //if(i%16==0)
|
|
|
+ //{
|
|
|
+ w.println("[0x06]");
|
|
|
+ w.print("[0x02 0x00 "+i/16+" "+(i%16)*16+" ");
|
|
|
+ //}
|
|
|
+ String[] lmaa = line.split(" ");
|
|
|
+ for (int i1 = 0; i1 < lmaa.length; i1++) {
|
|
|
+ w.print("0x"+lmaa[i1]+" ");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ w.println("]");
|
|
|
+ i++;
|
|
|
+ line = br.readLine();
|
|
|
+ if(i%8==0)
|
|
|
+ {
|
|
|
+ w.println("pause");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ w.println("[0x06]");
|
|
|
+ w.close();
|
|
|
+ }
|
|
|
+}
|