Sunday, 15 September 2013

linux - Meaning of <<>> in x86 disassembly -



linux - Meaning of <<< and >>> in x86 disassembly -

i can't seem understand >>> , <<< characters seem in x86 disassembly

for example:

cmp byte ptr [eax+33h],0 je -126cb479h >>> +33

or

lea esi,dword ptr [ecx+0ch] <<< +19

i understand basic instruction here; jump when equal appears after compare , load effective address >>> , <<< confusing me. guidance helpful. give thanks you.

they're indicators of jump destinations. it's simplistic form of ida pro's output, similar many clones.

cmp byte ptr [eax+33h],0 je -126cb479h >>> +33

this indicates destination of je command +33 bytes farther downwards (>>> going somewhere...)

lea esi,dword ptr [ecx+0ch] <<< +19

this indicates instruction destination (<<< - coming from) of jump/branch/call +19 bytes farther down. 19 bytes later, 19 bytes higher in memory... idea...

they not part of standard assembly language, personally, indicators should used comment delimiter. example:

cmp byte ptr [eax+33h],0 je -126cb479h ; >>> +33 lea esi,dword ptr [ecx+0ch] ; <<< +19

pretend you're drawing lines showing logic flow...

cmp byte ptr [eax+33h],0 je -126cb479h ; >>> +33 ---+ | ; many wonderful , varied instructions here | | hlt ; <<< -33 ---+

does help?

linux assembly x86

No comments:

Post a Comment