Question

The following instruction is performed: CMP AX,BX You want to jump to a different location in...

The following instruction is performed:

CMP AX,BX

You want to jump to a different location in your program if AX ≤ BX.

Which instruction would you use to do this and what flag settings are needed for the jump to occur if:

a.) If the values in the register were considered unsigned.

b.) If the values in the register were considered signed.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
The following instruction is performed: CMP AX,BX You want to jump to a different location in...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Section B - ARM Assembly Language (25 marks) An ARM instruction set summary is provided at...

    Section B - ARM Assembly Language (25 marks) An ARM instruction set summary is provided at the end of this paper 1. (5 marks) Consider the following assembly instruction STMFD r13!, (r5-6} Before executing this instruction, registers hold the following values: Register Value Register r9 Value r4 0x00400040 0x00000000 r5 r10 0x11223344 0x00800080 r6 0x55667788 r11 0x10001000 r7 0x99aabbcc r12 0x20002000 r8 exddeeff00 r13 ex40004000 What memory locations are affected after executing the above instruction? In a table, with a...

  • Fill in the blank using the word from below 1   A common way to detect whether...

    Fill in the blank using the word from below 1   A common way to detect whether a value is even or odd is to use the ___________ operation to test if the least significant bit is set. 2    In order to implement branching in an Assembly program, you must use ___________ to identify blocks of code. 3    The ___________ instruction will move execution to a different section of code regardless of any conditions. 4    Before any conditional tests can be...

  • 1 to 15 blanks thank you! (1 point) For registers, Integers are encoded in one of...

    1 to 15 blanks thank you! (1 point) For registers, Integers are encoded in one of two basic types 1. and 2. (1 point) The number 201 as a one byte unsigned integer is represented as in binary and in hexadecimal. (1 point) The 2 methods for representing signed integers are 3. and (5 points) What is the 16 bit representation of -125 in 2's complement notation? 4. (5 points) What is the decimal representation of the signed integer 10000001?...

  • You are given a homework processor (HPro) capable of addressing 32 8-bit (1 byte) wide registers....

    You are given a homework processor (HPro) capable of addressing 32 8-bit (1 byte) wide registers. However, it has only 29 physical registers. Register RO, R1 and R31 are not physically implemented. Instead, every read from RO, R1 and R31 will return a constant zero (00000000), constant one (00000001) and all ones (11111111), respectively. Every write to RO, R1 and R31 will go to null (dummy write). Assume that all other registers have initially unknown (X) state (This in fact...

  • 1. (10 points) Suppose you have a load-store computer with the following instruction mix Operation Frequency...

    1. (10 points) Suppose you have a load-store computer with the following instruction mix Operation Frequency Number of clock cycles ALU ops Loads Stores Branches 40 % 20 % 18% 22 % 4 4 The ALU ops (arithmetic logic unit ops) typically use operands in CPU registers and hence they take fewer clock cycles to execute. However, if you want to add a memory operand to a CPU register, then you would have to explicitly load it into a CPU...

  • If you want to reproduce the shuttling experiment as performed during week 3. you will need...

    If you want to reproduce the shuttling experiment as performed during week 3. you will need to purchase Cycloheximide (CHX) from one of three potential suppliers. CHX has a molar mass of 281.35 g/mol and can be dissolved in DMSO, water, or EtOH but with different solubilities. You will need to use CHX at a final working concentration of 17 μg/mL in a 150 mm dish with a total media volume of 14 mL. Determine how much of the stock...

  • A quadratic equation is generally represented as, ax^2 + bx + c The root(s) of the...

    A quadratic equation is generally represented as, ax^2 + bx + c The root(s) of the above quadratic equation is computed using the following formula, root1 = (-b + sqrt(D))/ 2a root2 = (-b - sqrt(D))/2a Where D is the discriminant of the quadratic equation and is computed as, D = b^2 - 4ac Given the value of D, the roots of a quadratic equation can be categorized as follows, D > 0 : Two distinct real roots D =...

  • Suppose you want to deposit a certain amount of money into a savings account and then...

    Suppose you want to deposit a certain amount of money into a savings account and then leave it alone to draw interest for the next 10 years. At the end of 10 years you would like to have $10,000 in the account. How much do you need to deposit today make that happen? You can use the following formula, which is known as the present value formula, to find out:                                    P = F / (1+ r)^n The terms in...

  • Scientists want to design fluorescent marker proteins for different cellular compartments using the Green Fluorescent Protein...

    Scientists want to design fluorescent marker proteins for different cellular compartments using the Green Fluorescent Protein (GFP). This means that the GFP will be targeted and glow at the organelle of interest and they can use these to mark different organelles during fluorescence microscopy. To make these marker proteins, they take the sequence of GFP and add the desired sorting signal. A. GFP on its own is an excellent protein to use as an organelle marker protein because it is...

  • From the MARIE simulation package which you downloaded last week, there are several example programs available....

    From the MARIE simulation package which you downloaded last week, there are several example programs available. In this lab, you will work on the basis of "Ex4 2.mas" following the steps below. You need to fill out the blanks as indicated, which will help you understand the code. At the end, you will need to modify the given code to implement a slightly different logic. 1. Make a copy of "Ex4_2.mas", and name the copy as "Lab 10.mas". 2. Start...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT