MOD-11 EFFECTIVE ADDRESS CALCULATION R/M W=0 W=1 R/M MOD- 00 MOD-01 MOD= 10 00 001 010 011 100 101 AL CL DL BL AH CH DH BH AX 000 (BX) + (SI) (BX) + (SI) + D8 (BX) + (DI) + D8 (BP) + (SI) + D8 (BP) + (DI) + D8 (SI) + D8 (DI) + D8 (BP) + D8 (BX) + D8 (BX) + (SI) + D16 (BX) + (DI) + D16 (BP) + (SI) + D16 (BP) + (DI) + D16 (SI) + D16 001 010 (BP) + (SI) CX DX BX SP BP SI DI (BX) + (DI) 011 100 101 110 (BP) + (DI) (S) (DI) DIRECT ADDRESS (BX) (DI) + D16 (BP) + D16 (BX) + D16 110 111 111 Figure: R/M vs MOD Chart for MOV: 100010 instruction REGISTER SELECT (SEE FIGURE 3-7) BYTE 1 ΒΥTE 3 BYTE 4 1000 1O ОР СODE LOW DISPLACEMENT HIGH DISPLACEMENT DW MOD REG R/M OR DIRECT ADDRESS LOW BYTE DIREST ADDRESS HIGH BYTE (5 BITS) ADDRESSING MODE (SEE FIGURE 3.8) BYTEWORD DATA OBYTE 1 WORD DIRECTION TOFROM REG 0- FROM 1- TO OPERATION CODE Figure: MOV: 100010 instruction template Based on the above templates, answer the following Questions: 1) a) Convert 89806910h from machine language to its corresponding assembly language. Show all of your workings. 1) b) Suppose the instruction MOV DI,[BP+42], appears in a program. What is its machine language equivalent in octal format? Show all of your workings. '

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

1

MOD= 11
EFFECTIVE ADDRESS CALCULATION
R/M
W=0
W=1
R/M
MOD = 00
MOD =01
MOD = 10
000
001
010
AL
CL
DL
BL
AX
CX
(BX) + (SI)
(BX) + (DI)
(BP) + (SI)
(BP) +(DI)
(SI)
(DI)
DIRECT ADDRESS
(BX)
000
(BX) + (SI) + D8
(BX) + (DI) + D8
(BP) + (SI) + D8
(BP) + (DI) + D8
(SI) + D8
(DI) + D8
(BP) + D8
(BX) + D8
(BX) + (SI) + D16
(BX) + (DI) + D16
(BP) + (SI) + D16
(BP) + (DI) + D16
(SI) + D16
(DI) + D16
(BP) + D16
(BX) + D16
001
DX
010
011
BX
SP
BP
011
100
101
AH
100
CH
DH
101
110
SI
DI
110
111
BH
111
Figure: R/M vs MOD Chart for MOV:
100010 instruction
REGISTER SELECT (SEE FIGURE 3-7)
ΒΥΤE 1
ΒΥΤE 3
ΒΥΤE 4
100 0 10
LOW DISPLACEMENT HIGH DISPLACEMENT
OP CODE
DW MOD REG
R/M
OR
DIRECT ADDRESS
LOW BYTE
DIREST ADDRESS
HIGH BYTE
(5 BITS) ADDRESSING MODE (SEE FIGURE 3.8)
BYTEWORD DATA O- BYTE 1 WORD
-DIRECTION TOIFROM REG 0- FROM 1- TO
OPERATION CODE
Figure: MOV: 100010 instruction template
Based on the above templates, answer the
following Questions:
1) a) Convert 89806910h from machine language
to its corresponding assembly language. Show
all of your workings.
1) b) Suppose the instruction MOV DI,[BP+42],
appears in a program. What is its machine
language equivalent in octal format? Show all of
your workings.'
Transcribed Image Text:MOD= 11 EFFECTIVE ADDRESS CALCULATION R/M W=0 W=1 R/M MOD = 00 MOD =01 MOD = 10 000 001 010 AL CL DL BL AX CX (BX) + (SI) (BX) + (DI) (BP) + (SI) (BP) +(DI) (SI) (DI) DIRECT ADDRESS (BX) 000 (BX) + (SI) + D8 (BX) + (DI) + D8 (BP) + (SI) + D8 (BP) + (DI) + D8 (SI) + D8 (DI) + D8 (BP) + D8 (BX) + D8 (BX) + (SI) + D16 (BX) + (DI) + D16 (BP) + (SI) + D16 (BP) + (DI) + D16 (SI) + D16 (DI) + D16 (BP) + D16 (BX) + D16 001 DX 010 011 BX SP BP 011 100 101 AH 100 CH DH 101 110 SI DI 110 111 BH 111 Figure: R/M vs MOD Chart for MOV: 100010 instruction REGISTER SELECT (SEE FIGURE 3-7) ΒΥΤE 1 ΒΥΤE 3 ΒΥΤE 4 100 0 10 LOW DISPLACEMENT HIGH DISPLACEMENT OP CODE DW MOD REG R/M OR DIRECT ADDRESS LOW BYTE DIREST ADDRESS HIGH BYTE (5 BITS) ADDRESSING MODE (SEE FIGURE 3.8) BYTEWORD DATA O- BYTE 1 WORD -DIRECTION TOIFROM REG 0- FROM 1- TO OPERATION CODE Figure: MOV: 100010 instruction template Based on the above templates, answer the following Questions: 1) a) Convert 89806910h from machine language to its corresponding assembly language. Show all of your workings. 1) b) Suppose the instruction MOV DI,[BP+42], appears in a program. What is its machine language equivalent in octal format? Show all of your workings.'
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Similar questions
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