Thread: CMPing what to what? (ASM question)

  1. #1
    Super Moderator
    Join Date
    Sep 2001

    CMPing what to what? (ASM question)

    I had an inkling on the answer because of the direction that MOV, ADD and all thos others work, but when you use the following code:


    Would it jumo to proc1 if BX was not below AX, or if AX was not below BX. Thanks in advance if you can help.

  2. #2
    Registered User
    Join Date
    Jan 2002
    My book is all the way downstairs.

    Why don't you try it and see what happens?

  3. #3
    Registered User WayTooHigh's Avatar
    Join Date
    Aug 2001

    Re: CMPing what to what? (ASM question)

    it would jump if AX is not below BX.

    [edit]i had AX and BX switched[/edit]
    Last edited by WayTooHigh; 04-09-2002 at 10:51 AM.
    Sometimes, the farthest point from the center is the center itself.

    Your life is your canvas, it's only as beautiful as you paint it.

  4. #4
    Super Moderator
    Join Date
    Sep 2001
    Whoa.... now THAT's lazy!

    *admires Brian*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 12:14 PM
  2. Beginner ASM question: jump instructions
    By geek@02 in forum Tech Board
    Replies: 2
    Last Post: 09-07-2008, 06:46 AM
  3. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of
    Replies: 7
    Last Post: 04-02-2003, 04:28 AM
  4. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM
  5. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 03:57 PM