On 16 Aug 2007 at 17:07, Jim Leonard wrote:
...etc, at
least you know what the value is that is causing the
jump. With a jump table, you
have to do some digging.
Oh, I have a soft spot in my heart of hearts for the folks who opt to
save a few bytes of code by "chaining" conditional jumps. As in:
cmp al,5
je lab1
...
cmp bl,15
lab1:
je lab2
...
test cl,014h
lab2:
jz lab3
...
cmp dl,ch
lab3:
je lab6
...and so on. How clever of these folks not to have to write the
code for an unconditional 3-byte jump. I've seen macro definitions
that do this--even more clever.
Cheers,
Chuck