Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8074897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:48:45+00:00 2026-06-05T14:48:45+00:00

I just started with assembly and it’s going great, but there’s 1 thing that

  • 0

I just started with assembly and it’s going great, but there’s 1 thing that I just don’t understand.
How do conditional jumps work?

I have a sample of assembly code here.

TEST EAX, EAX
FCLEX
JGE SHORT 004022B1

I see that when a certain condition is greater or equal, a jump will be made to 004022B1.

But what is that condition and where is it checked?

I assume the condition must be TEST EAX,EAX. But I’m not sure what it does.

Can anyone explain to me how conditional jumps work and where the condition is checked/stored?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T14:48:49+00:00Added an answer on June 5, 2026 at 2:48 pm

    Conditional jumps (and some other instructions) use flags. These flags are bits in the (E/R)FLAGS register. test a, b sets the flags according to the result of and a, b, without updating a with the result. fclex does not change any normal flags (it changes FPU flags of course).

    jge tests* whether the value of the sign flag is equal to the overflow flag. test a, b sets the overflow flag to zero and the sign flag to the signbit of the result of and a, b. So the jump will be taken if eax is positive.

    *: note that it does not test for “greater or equal”. That interpretation is valid when the flags are checked after a cmp (and some other instructions). It really just looks at the flags.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just started working with Mercurial a few days ago and there's something I don't
I have just started the Assembly language programming and in the first lecture our
I've just started programming in Assembly for my computer organization course, and I keep
I just started down the Assembly road, and one of the first Hello, World!
Hi I just started learning assembly in IA32. Can anyone tell me what these
I have just started my project but have run into problems which is preventing
I've just started to work with NUnit in order to provide some test coverage
I just started working with assembly so this is probably a really simple question,
I have just started to teach myself x86 assembly on linux from these video
Issue: Just started today, all references to any assembly outside of the solution fail

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.