a) Convert 89806910h from machine language to its corresponding assembly language. Show all of your workings.  (b) Suppose the instruction MOV DI, [BP+42h], appears in a program. What is its machine language for the given instruction?

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

a) Convert 89806910h from machine language to its corresponding assembly language.
Show all of your workings. 
(b) Suppose the instruction MOV DI, [BP+42h], appears in a program. What is its machine
language for the given instruction? 

8.
R/M
000
001
010
011
100
101
110
111
Use the following charts to answer the questions (a) and (b)
MOD = 11
W=0
AL
CL
DL
BL
AH
CH
DH
BH
W=1
AX
CX
DX
BYTE 1
1000 10
OP CODE
BX
SP
BP
SI
DI
R/M
000
001
010
(BX) + (SI)
(BX) + (DI)
(BP) + (SI)
(BP) + (DI)
(SI)
101 (DI)
110 DIRECT ADDRESS
111 (BX)
EFFECTIVE ADDRESS CALCULATION
MOD=00
011
100
MOD=01
DW MOD REG R/M
(BX) + (SI) + D8
(BX) + (DI) + D8
(BP) + (SI) + D8
(BP)+(DI) + D8
(SI) + D8
(DI) + D8
(BP) + D8
(BX) + D8
Figure: R/M vs MOD Chart for MOV: 100010 instruction
11
OR
REGISTER SELECT (SEE FIGURE 3-7)
BYTE 3
LOW DISPLACEMENT HIGH DISPLACEMENT
DIRECT ADDRESS !
LOW BYTE
MOD=10
(BX) + (SI) + D16
(BX) + (DI) + D16
(BP) + (SI) + D16
(BP) + (DI) + D16
(SI) + D16
(DI) + D16
(BP) + D16
(BX) + D16
Figure: MOV: 100010 instruction template
BYTE 4
DIREST ADDRESS
HIGH BYTE
(5 BITS) ADDRESSING MODE (SEE FIGURE 3.8)
-BYTEWORD DATA 0 BYTE 1 = WORD
- DIRECTION TO/FROM REG 0= FROM 1 - TO
-OPERATION CODE
Transcribed Image Text:8. R/M 000 001 010 011 100 101 110 111 Use the following charts to answer the questions (a) and (b) MOD = 11 W=0 AL CL DL BL AH CH DH BH W=1 AX CX DX BYTE 1 1000 10 OP CODE BX SP BP SI DI R/M 000 001 010 (BX) + (SI) (BX) + (DI) (BP) + (SI) (BP) + (DI) (SI) 101 (DI) 110 DIRECT ADDRESS 111 (BX) EFFECTIVE ADDRESS CALCULATION MOD=00 011 100 MOD=01 DW MOD REG R/M (BX) + (SI) + D8 (BX) + (DI) + D8 (BP) + (SI) + D8 (BP)+(DI) + D8 (SI) + D8 (DI) + D8 (BP) + D8 (BX) + D8 Figure: R/M vs MOD Chart for MOV: 100010 instruction 11 OR REGISTER SELECT (SEE FIGURE 3-7) BYTE 3 LOW DISPLACEMENT HIGH DISPLACEMENT DIRECT ADDRESS ! LOW BYTE MOD=10 (BX) + (SI) + D16 (BX) + (DI) + D16 (BP) + (SI) + D16 (BP) + (DI) + D16 (SI) + D16 (DI) + D16 (BP) + D16 (BX) + D16 Figure: MOV: 100010 instruction template BYTE 4 DIREST ADDRESS HIGH BYTE (5 BITS) ADDRESSING MODE (SEE FIGURE 3.8) -BYTEWORD DATA 0 BYTE 1 = WORD - DIRECTION TO/FROM REG 0= FROM 1 - TO -OPERATION CODE
Expert Solution
steps

Step by step

Solved in 3 steps

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