Given the instruction format of X86 processor and codes for internal registers below REG & R/M fields OPCODE D WMOD REG R/M REG or a) Find the machine codes in Hex for MOV SI, DI and MOV DI, SI R/M when MOD=11 REG b) Find the machine codes in Hex for MOV BH, CL and MOV CL, BH W=0 W=1 R/M R/M c) Find the machine codes in Hex for ADD CX, DX and ADD BP, SP 000 AL AX 000 001 CL CX 001 Assume that the opcodes for MOV and ADD are 100000 and 000000 respectively. Also note that if you set d = 1; then the R/M field will contain code of source Register of data and REG field will hold the code of the destination register. 010 DL DX 010 011 BL BX 011 If you clear d = 0; then the REG field will contain code of source Register of data and R/M field will hold the code of the destination register. 100 АН SP 100 101 CH BP 101 110 DH SI 110 111 BH DI 111 When MOD=11. R/M acts as a REG field

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

PLEASE SOLVE AS SOON AS POSSIBLE!!! HURRY UP!! 

Given the instruction format of X86 processor and codes for internal registers below
REG & R/M fields
OPCODE
DWMOD REG R/M
REG or
a) Find the machine codes in Hex for MOV SI, DI and MOV DI, SI
R/M when MOD=11
REG
b) Find the machine codes in Hex for MOV BH, CL and MOV CL, BH
W=0
W=1
R/M
R/M
c) Find the machine codes in Hex for ADD CX, DX and ADD BP, SP
000
AL
AX
000
001
CL
CX
001
Assume that the opcodes for MOV and ADD are 100000 and 000000 respectively.
Also note that if you set d = 1; then the R/M field will contain code of source Register of data and
REG field will hold the code of the destination register.
010
DL
DX
010
011
BL
BX
011
If you clear d = 0; then the REG field will contain code of source Register of data and R/M field
will hold the code of the destination register.
100
АН
SP
100
101
CH
BP
101
110 DH
SI
110
111
BH
DI
111
When MOD=11,
R/M acts as a REG field
Transcribed Image Text:Given the instruction format of X86 processor and codes for internal registers below REG & R/M fields OPCODE DWMOD REG R/M REG or a) Find the machine codes in Hex for MOV SI, DI and MOV DI, SI R/M when MOD=11 REG b) Find the machine codes in Hex for MOV BH, CL and MOV CL, BH W=0 W=1 R/M R/M c) Find the machine codes in Hex for ADD CX, DX and ADD BP, SP 000 AL AX 000 001 CL CX 001 Assume that the opcodes for MOV and ADD are 100000 and 000000 respectively. Also note that if you set d = 1; then the R/M field will contain code of source Register of data and REG field will hold the code of the destination register. 010 DL DX 010 011 BL BX 011 If you clear d = 0; then the REG field will contain code of source Register of data and R/M field will hold the code of the destination register. 100 АН SP 100 101 CH BP 101 110 DH SI 110 111 BH DI 111 When MOD=11, R/M acts as a REG field
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY