The following problems are related to control. Recall that the CPU stores condition codes in registers describing results of the last arithmetic and logical instruction.

computer science

Description

The following problems are related to control. Recall that the CPU stores condition codes in registers describing results of the last arithmetic and logical instruction. These registers are used to perform conditional branches. Since you will be using the y86 64 emulator, you will need to pad calls for either cmpq or testq with a push and pop of the destination register.


In this problem, you will investigate operations that set the flags listed below individually. Provide the initial register state used in order for the flags to be set, and the instructions used. Consider the operations for each flag to be independent of each other.

Instruction Files

Related Questions in computer science category