Friday, March 13, 2015

Farewell GoogleCode

Because Google Code is going to end its life, I have moved all my pet projects to GitHub and the repository link is https://github.com/raydac?tab=repositories

Wednesday, February 4, 2015

New version of Java Binary Block Parser (JBBP) 1.1.0 is out

The New version of JBBP 1.1.0 is out and accessible in the maven central, now it supports not only parsing of binary data and mapping them to classes but also and back operation - packing binary data blocks from mapped classes and even printing of mapped class  description, take a look at example


class Flags {
      @Bin(outOrder = 1, name = "f1", type = BinType.BIT, outBitNumber = JBBPBitNumber.BITS_1, comment = "It's flag one") byte flag1;
      @Bin(outOrder = 2, name = "f2", type = BinType.BIT, outBitNumber = JBBPBitNumber.BITS_2, comment = "It's second flag") byte flag2;
      @Bin(outOrder = 3, name = "f3", type = BinType.BIT, outBitNumber = JBBPBitNumber.BITS_1, comment = "It's 3th flag") byte flag3;
      @Bin(outOrder = 4, name = "f4", type = BinType.BIT, outBitNumber = JBBPBitNumber.BITS_4, comment = "It's 4th flag") byte flag4;
    }
    final int data = 0b10101010;
    Flags parsed = JBBPParser.prepare("bit:1 f1; bit:2 f2; bit:1 f3; bit:4 f4;", JBBPBitOrder.MSB0).parse(new byte[]{(byte)data}).mapTo(Flags.class);
    System.out.println(new JBBPTextWriter().Bin(parsed).Close().toString());
    assertEquals(data, JBBPOut.BeginBin(JBBPBitOrder.MSB0).Bin(parsed).End().toByteArray()[0] & 0xFF);
the code will parse the byte, then print its values

;--------------------------------------------------------------------------------
; START : Flags
;--------------------------------------------------------------------------------
    01; f1, It's flag one
    02; f2, It's second flag
    00; f3, It's 3th flag
    05; f4, It's 4th flag
;--------------------------------------------------------------------------------
; END : Flags
;--------------------------------------------------------------------------------
and again will pack parsed data into byte

New version of ZX-Poly emulator is out under GPL 3

I have reworked and published ZX-Poly emulator under GPL3, also the project contains Z80 emulator as separated block

The Emulator supports .TAP,.SNA,.Z80,.TRD and .SCL snapshots and even allows to generate tape WAV files from TAP snapshots.

Saturday, November 15, 2014

New version of Java Comment Preprocessor (5.3.4) is out

I have published on Maven central, the new 5.3.4 version of Java Comment Preprocessor. Minor bugfixing, minor improvements mainly in the maven related part, mainly added feature to clear preprocessed generated folders from maven and preprocess test folders.

Friday, October 31, 2014

JRebel NetBeans Plugin nightly build

ZeroTurnaround has created special page where the nightly build of JRebel plugin for NetBeans can be dosnloaded
the link to the page

Sunday, August 10, 2014

Java Binary data parsing and packing

 I have published "yet another Java framework to parse and pack binary blocks"  (because I am too lazy to write tons of lines for different cases), I wanted some small compatible with JavaSE and Android solution so that meet the JBBP (Java Binary Block Parser).