Search for question
Question

Exercise 1 Provide the values of the Carry Flag (CF), Zero Flag (ZF), and the Sign Flag (SF) corresponding to each of the following arithmetic operations. Assume a 32 bits processor: OXCDAAACDF + 0xFABC1BCD 0x3DAAA1FF-0x9ACD4AB1 OxABCD12CF + 0x1245C122 OxCDFFB222 + 0xFFFF Notes: 1- As was mentioned in the class, each flag can take two possible values only: 1 or 0 if the event takes place or not respectively. For instance, if there is carry, then CF = 1. Otherwise CF = 0 2- As a reminder, a number is negative if its most significant bit is 1. In this case, SF flag = 1

Fig: 1