CS501 By ®@π@ $@@β
CS501 By ®@π@ $@@β
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.
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