Message board for the users of flat assembler.
> High Level Languages > Nested structure comparsion.
I have a nested structure scheme where a structure (aka sequence, list,
table) contains N items, each of which can be an integer, a float, or
a nested structure of the same format.
Without boring you too much with the nitty-gritty, what I want to do is
compare two arbitrary such objects, potentially deeply nested.
Obviously I need a recursive routine, tad harder in assembly but doable,
my real question is about the intermediate results, which I am thinking
of leaving in ah.
Two integers will compare on the CPU, and need signed set/jump opcodes,
whereas if either or both is a float, the comparison must be done on the
FPU, followed by fnstcw/sahf, and unsigned set/jump opcodes (cmiiw).
If I am right about that, should I somehow translate ah in the FPU case,
to match a lahf done after a compare on the CPU?
|03 Feb 2006, 19:48||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.