X86 assembly instructions
TESTL with identical arguments (like edx and edx) sets the flags based on the value of that argument itself (since x AND x is identical to x). So we can forget about the AND altogether here since it's discarded - all we need to concern ourselves with is the value in edx.
With TESTL, the zero flag ZF is set to 1 only if the value is zero. TESTL also forces the overflow flag OF to 0 and sets the sign flag SF only if the high bit is set.
JLE will then jump if either ZF is set to 1, or SF OF.
So, the jump will execute if either:
- edx was zero; or
- edx had its high bit set.
Hence it will jump for edx values of 0 or 0x80000000 - 0xffffffff.
You might also like
|
Little Tikes 3' Trampoline Toy (MGA Entertainment)
|
|
The Original Toy Company Fold & Go Trampoline (TM) Toy (Original Toy Company (formerly Galt))
|
|
Net for 14ft Trampolines Enclosure using 3 Arches and Sleeves Sports (Trampoline)
|
|
Skywalker Trampolines 48 In. Round Zoo Adventure Bouncer with Enclosure Sports (Skywalker)
|
|
Pure Fun 9001KJ Kid's Jumper Trampoline Sports (Pure Fun)
|





An assembly language is a low-level programming language for computers, microprocessors, microcontrollers, and other programmable devices in which each statement corresponds to a single machine language instruction. An assembly language is specific to a certain computer architecture, in contrast to most high-level programming languages, which...