0% found this document useful (0 votes)
25 views

CS501 By ®@π@ $@@β

Uploaded by

yousafalim775
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

CS501 By ®@π@ $@@β

Uploaded by

yousafalim775
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Name: ®@π@ $@@β

VU da PAWA iko ee RANA

Questions No 01 20 marks

Write the equivalent assembly language instructions for the given machine language
instructions. Write all the conversion steps for all instructions sequence wise.

Sr # Machine Language Instruction Equivalent Assmebly Language


Instruction
1 E1C60004 h
2 61885000 h
3 724E8000 h
4 1A4000D4 h
5 084000D0 h

Step: 1
Sr # Given instruction in Equivalent instruction in binary
hexadecimal
1 E1C60004 h 1110 0001 1100 0110 0000 0000 0000 0100
2 61885000 h 0110 0001 1000 1000 0101 0000 0000 0000
3 724E8000 h 0111 0010 0100 1110 1000 0000 0000 0000
4 1A4000D4 h 0001 1010 0100 0000 0000 0000 1101 0100
5 084000D0 h 0000 1000 0100 0000 0000 0000 1101 0000
Step: 2
Sr # Given instruction in hexadecimal Op-code field mnemonic
1 E1C60004 h 1110 0 b shl
2 61885000 h 0110 0 b add
3 724E8000 h 0111 0 b sub
4 1A4000D4 h 0001 1 b st
5 084000D0 h 0000 1 b ld
Step: 3
Sr # Given instruction in hexadecimal mnemonic Instruction type
1 E1C60004 h shl C
2 61885000 h add D
3 724E8000 h sub D
4 1A4000D4 h st C
5 084000D0 h ld C
Step: 4
Sr # Machine Language Instruction Equivalent Assmebly Language
Instruction
1 E1C60004 h Shl R7, R3, 4
2 61885000 h Add R6, R4, R5
3 724E8000 h sub R9, R7, R8
4 1A4000D4 h st R9, z
5 084000D0 h ld R1, c

You might also like