Exercises 4.2:
2: a, b, f, g
(o) negab1op
2. For each instruction, give the 80x86 opcode and the total number of bytes of object code, including prefix bytes. Assume you are in 64-bit mode and that wordOp, dblOp, and quadOp reference a word, doubleword, and quadword in data, respectively. You can check your answers by assembling the instructions in a short console64 program. (@ add ax, wordOp (b sub dblOp, ebx (c sub rax, 10 *(d add quadOp, 1000 *(e) inc rl0b f dec wordOp g) neg rdx h) inc QWORD PTR[rdx]