Results 1 to 8 of 8

Thread: Binary analysis tool

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2016
    Posts
    12

    Smile Binary analysis tool

    This is a Binary Analysis Tool. It is used to analyse binary data visually. In this case these are 8x8 blocks. The buttons have quick identifiers, since the plan was to add graphical icons. Here is a quick run down, though after use it is self-explanatory.

    First of all, in the small window on the top left, you can create a pattern with the left mouse button. With the right mouse button, you can move the reference point, which is something you can use to quickly keep track of rotations and shifts in your head. So for example if you have the reference point on a true square and you rotate right and the end result is a false square, you can quickly see the X and Y coordinate under it. At the same time, you can quickly note that the pattern needs to be shifted left right up or down for a true square and then you add or subtract from x and y. This sounds complicated, but it basically means there is no algorithm implied. That means you can use whatever algorithm you create to do the calculation in your head in real time. This can aid in visual recognition. Think abacus.

    Here are the main buttons

    r_L = rotate left
    r_R = rotate right

    s_U = shift up
    s_D = shift down
    s_L = shift left
    s_R = shift right

    f_UD = flip up-down
    f_LR = flip left-right

    Checkbox R = Reset. If you move the patterns to the Set, they will overdraw in the Set table. If this is checked, then the table will be reset every time.

    So to keep things simple, move from left to right.


    Draw Bin pattern(s)
    place in Hex box
    move Hex box to Set box


    The program could be further extended by adding additional useful tools, but this quickly gives you a chance to work with binary data. I hope someone finds this useful, if not for the program itself, then for the code snippets inside. The rotations all act on a 2D array and are very simplified. These can be used in graphics applications. There is a draw over in the Bin box. which means, that if you have the mouse down then it draws the color (true/false) you selected last and it won't over draw that color until you have a mouse up. This is convenient and also useful in graphics applications.

    There is a sample.txt file in the project directory. Make sure it stays there if you import the forms manually, since it has a small example set in it. It is not necessary to use it, but it can give you a better view of what a simple session can look like.

    Please let me know if this was helpful or useful in your projects. If you feel you can add some features, please do and let me know.

    BA_Tool.zip

    *UPDATED* minor bug fix as recommended BA_Tool.zip
    Last edited by isarch; Aug 26th, 2016 at 11:58 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width