Log in

View Full Version : Problem with align


digi
March 28th, 2010, 13:22
Hi, i'm working on a IDA-Plugin (IDA 5.0), and want find "basic blocks", but have a problem with "align". How function need apply, that "align" not identity as instruction.

I use the next code for go on code function and check all instructions:

if(ua_ana0(addr)>0)
{...}
else
{
prev_addr=addr;
addr++;
}

but next problem code:

.text:7900D60A inc edi
.text:7900D60B jmp short loc_7900D5AB <- end previous BB
.text:7900D60B ; --------------------------------------------------------------------------- <- problem
.text:7900D60D align 10h <- start align
.text:7900D610 dword_7900D610 dd 0FFFFFFFEh, 0 ; DATA XREF: __fcloseall+2 o
.text:7900D618 dd 0FFFFFFD0h, 0
.text:7900D620 dd 0FFFFFFFEh, 0
.text:7900D628 dd offset sub_7900D641
.text:7900D62C ; ---------------------------------------------------------------------------
.text:7900D62C <- start new BB
.text:7900D62C loc_7900D62C: ; CODE XREF: __fcloseall+28 j
.text:7900D62C mov [ebp+ms_exc.disabled], 0FFFFFFFEh
.text:7900D633 call sub_7900D641


May be has more easy way to find BB.