Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSE 380 ASSESMENT:1-4 Quicker. Last time of homework have to submit fast . Do all the questions i provided and just ensure the right answer

CSE 380 ASSESMENT:1-4

Quicker. Last time of homework have to submit fast . Do all the questions i provided and just ensure the right answer i do not need detailed work, It is urgent.

AS SOON AS POSSIBLE.BETTER IF YOU DO IN 30 MINITUES

In 8.10 pm If half answer is done, then provide it please, then do the rest

QUESTION: image text in transcribed

Based on the above templates, answer the following Questions:

1) a) Convert 8B8C5712h from machine language to its corresponding assembly language. Show all of your workings. (3 marks)

1) b) Suppose the instruction MOV [BX+38], SI, appears in a program. What is its machine language equivalent in octal format? Show all of your workings. (1 mark)

Show transcribed image text

R/M 000 001 010 011 100 101 110 111 (SI) MOD = 11 EFFECTIVE ADDRESS CALCULATION W=0 W=1 R/M MOD=00 MOD=01 MOD= 10 AL AX 000 (BX) + (SI) (BX)+(SI) + DB (BX)+(SI)+D16 CL CX 001 (BX) + (DI) (BX) + (DI) + DB (BX)+(DI) + D16 DL DX 010 (BP) + (SI) (BP)+(SI) + DE (BP) + (SI) + D16 BL BX 011 (BP)+(DI) (BP)+(DI) + D8 (BP)+(DI) + D16 AH SP 100 (SI) + DB (SI) +D16 CH BP 101 (DI) (DI) + D8 (DI) + D16 DH SI 110 DIRECT ADDRESS (BP) + DB (BP)+D16 BH DI 111 (BX) (BX)+D8 (BX) + D16 Figure: R/M vs MOD Chart for MOV: 100010 instruction REGISTER SELECT (SEE FIGURE 3-7) BYTE 1 BYTE 3 BYTE 4 100000 OP CODE DW MOD REG LOW DISPLACEMENT HIGH DISPLACEMENT RM OR DIRECT ADDRESS DIREST ADDRESS LOW BYTE HIGH BYTE (5 BITS) ADDRESSING MODE (SEE FIGURE 3.8) BYTENWORD DATA O = BYTE 1 - WORD DIRECTION TO FROM REG O - FROM 1 - TO -OPERATION CODE Figure: MOV: 100010 instruction template

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions