|
@@ -46,6 +46,7 @@ public class HexHennenGegacker {
|
|
f.writeByte(j);
|
|
f.writeByte(j);
|
|
}
|
|
}
|
|
f.close();*/
|
|
f.close();*/
|
|
|
|
+ /*
|
|
RandomAccessFile f = new RandomAccessFile("/home/tgoerner/loa/000030/flash-mösenpilze","rw");
|
|
RandomAccessFile f = new RandomAccessFile("/home/tgoerner/loa/000030/flash-mösenpilze","rw");
|
|
for(int i=0;i<256;i++)
|
|
for(int i=0;i<256;i++)
|
|
{
|
|
{
|
|
@@ -61,6 +62,41 @@ public class HexHennenGegacker {
|
|
}
|
|
}
|
|
f.write(frame);
|
|
f.write(frame);
|
|
}
|
|
}
|
|
- f.close();
|
|
|
|
|
|
+ f.close();*/
|
|
|
|
+ byte[] separatorframe = {0x1b, (byte)0x88,
|
|
|
|
+ 0x7F, 0x00,0x00,0x00,
|
|
|
|
+ 0x0F, 0x0F,0x0F,0x0F,
|
|
|
|
+ 0x0F, 0x0F,0x0F,0x0F,
|
|
|
|
+ 0x00, 0x00,0x00,0x00,
|
|
|
|
+
|
|
|
|
+ 0x00, 0x00,0x00,0x00,
|
|
|
|
+ 0x0F, 0x0F,0x0F,0x0F,
|
|
|
|
+ 0x00, 0x00,0x00,0x00,
|
|
|
|
+ 0x00, 0x00,0x00,0x7F,
|
|
|
|
+ };
|
|
|
|
+ for(int fi=0;fi<16;fi++)
|
|
|
|
+ {
|
|
|
|
+ RandomAccessFile f = new RandomAccessFile("D:\\LOA\\000030\\HexHenne\\flash"+fi+".replacesection","rw");
|
|
|
|
+ f.write(separatorframe);
|
|
|
|
+ for(int i=0;i<256;i++)
|
|
|
|
+ {
|
|
|
|
+ byte[] frame = new byte[34];
|
|
|
|
+ frame[0]=(byte)0x1B;
|
|
|
|
+ int modifier = (i>>4);
|
|
|
|
+ modifier |=fi<<4;
|
|
|
|
+ //int modifier = 0x52;
|
|
|
|
+ frame[1]=(byte)modifier;
|
|
|
|
+ for(int j=2;j<34;j++)
|
|
|
|
+ {
|
|
|
|
+ frame [j]=(byte)(i%16);
|
|
|
|
+ }
|
|
|
|
+ f.write(frame);
|
|
|
|
+ if(i%16==15)
|
|
|
|
+ {
|
|
|
|
+ f.write(separatorframe);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ f.close();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|