6. The following is the list of memory contents in an Intel system when CS-1000H
ID: 2249509 • Letter: 6
Question
6. The following is the list of memory contents in an Intel system when CS-1000H and IP 01001H. Contents 01 10 Address 20134 20133 20132 20131 20130 20129 20128 20127 20126 20125 20124 EA FO EB (Short jump) 20 EB (Short jump) 02 20 10104 10103 10102 10101 10100 01 23 EA (Far jump) (a) What are the values of CS and IP after the execution of the first instruction? (b) What are the values of CS and IP after the execution of the second instruction? c) What are the values of CS and IP after the execution of the third instruction?Explanation / Answer
CS register is updated only during far jump,far call and far return instructions.
IP is updated after every instruction.
a)so in the first instruction due to far jump, CS = 1000+EA = 10EA and IP = 0100+EA = 1EA
b)Due to no far jump or call or return CS is same, CS = 10EA and IP = 1EA+23 = 20D
c)Due to no far jump or call or return CS is same, CS = 10EA and IP = 20D+ 01 = 20E
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.