Results 1 to 4 of 4

Thread: The color of flag register in Ollydbg

  1. #1

    Question The color of flag register in Ollydbg

    I always have a trouble to remember jcc instructions(eg. JNLE,JNG) looking up which flag register, so I want to if there is an ollydbg plug-in,which has the following feature,

    when the current instruction is a conditonal jump,
    e.g. jz instruction
    zero flag register(the letter 'z' in ollydbg) will be showed a special color to be distinguished from other flag registers .

    Do someone know about this ? thx

  2. #2
    Naides is Nobody
    Join Date
    Jan 2002
    Location
    Planet Earth
    Posts
    1,647
    I know you WANT that plug-in, and sounds like a realy cool idea. . .
    Why don't we MAKE it?
    Think about how much you will learn. . . for starters, the flags affected by a jump will be forever engraved in your brain, plus you will help other people having similar problems!

  3. #3
    What you said sounds like a zen.
    Sure,why not make it by ourselves?

    I have download some examples from http://www.ollydbg.de/, but I still am not sure how to change the letter's color in Ollydbg's register pane.

    I never write a plug-in for ollydbg, but I REALLY would like to have a try.

    Could you give me some suggestions or info? thanks

  4. #4
    Teach, Not Flame Kayaker's Avatar
    Join Date
    Oct 2000
    Posts
    4,114
    Blog Entries
    5
    Good on ya. for wanting to do it yourself. Just a very quick few comments then to steer you hopefully in the right direction. It's been quite a long time since I wrote an Olly plugin, so this is only from reviewing the documentation at the moment.

    Text syntax (highlighting, color, etc.) is defined in Painttable(), or more precisely the DRAWFUNC callback. This is a normal WM_PAINT construct and is how you would define your Flag modifications.

    As for the rest, you *might* be able to subclass the CPU Registers window (t_reg*) and modify the flags display (note things like DRAW_MASK, RS_EFL, etc. defines in plugin.h).

    It might actually be easier, or at least more flexible, to create your own custom window and output a new set of Flags on each conditional jump. You could then use this custom window as a template for more involved plugins.

    Pretty sketchy notes this time of night, but this should give you a rough idea for now.

    Kayaker

Similar Threads

  1. About the 2 Flexlm ECC flag....
    By flexlm in forum Advanced Reversing and Programming
    Replies: 8
    Last Post: February 8th, 2010, 06:51
  2. ollydbg color
    By jolopez in forum OllyDbg Support Forums
    Replies: 1
    Last Post: September 3rd, 2005, 03:32
  3. where is the zero flag?
    By Todesengel in forum OllyDbg Support Forums
    Replies: 6
    Last Post: August 25th, 2004, 13:25
  4. can't run softice in high color mode
    By jth in forum Tools of Our Trade (TOT) Messageboard
    Replies: 2
    Last Post: August 12th, 2001, 21:03
  5. Patch file but leave 'modified' flag same
    By ASMCoder in forum Advanced Reversing and Programming
    Replies: 4
    Last Post: December 13th, 2000, 08:13

Bookmarks

Posting Permissions

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