flat assembler
Message board for the users of flat assembler.

Index > Main > repnz scas trouble

Author
Thread Post new topic Reply to topic
moveax41h



Joined: 18 Feb 2018
Posts: 59
moveax41h 31 Jul 2018, 17:05
As you can see from my gdb gef output, I am on a repnz scas instruction (which I actually wrote as a repe scasb but apparently the gdb disassembler is off or something else happened during assembly (forgive my ignorance here)... In any event, despite the fact that it's a repnz scas, as you can see, the zero flag is actually set and this continuous to repeat, that's what I'm confused about. Actually, I found this because I'm debugging a segfault in my program and it's because this loop goes for far too long and causes a memory corruption.

In any event, here's the screenshot:


Description: gdb gef output for repnz scas even with zero flag set
Filesize: 805.72 KB
Viewed: 2788 Time(s)

Screenshot from 2018-07-31 09-54-29.png



_________________
-moveax41h
Post 31 Jul 2018, 17:05
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.