News for hackers. Stuff that matters.
Re:Reverse-engineering the conditional jump circuitry in the... by peterfirefly on Monday January 23, 2023 @04:05PM (#34495026)
I vaguely remember that it had trouble remembering more than one prefix past an interrupt -- so if you wanted to combine REP with a segment override prefix you should put the REP first, then the segment override prefix, then the string instruction... and then some conditional jump stuff that jumped back to the REP if CX != 0.

So basically:

    repeat: rep
            cs:
            scasb
            jcxz   done
            jmp    short repeat
    done:
Re:Reverse-engineering the conditional jump circuitry in the... by shadowofneptune on Monday January 23, 2023 @04:44PM (#34495512)
Micheal Abrash's book covers this. May just be better to swap out the segment registers at that point though.