I don\'t understand what this wants. I put in Op1-Op2 but don\'t know if that is
ID: 3875599 • Letter: I
Question
I don't understand what this wants. I put in Op1-Op2 but don't know if that is correct
For answer 1, write the binary operation code (opcode) for the Java Byte Code instruction that multiplies two integers and stores the result. For example, the binary Java Byte Code instruction opcode to add two integers and store the result is 01100000" without the quotes. Do not insert any spaces in your answer. For answer 2, write the mnemonic for the Intel x86 instruction that has primary opcode 69base 16 which equals 01101001 in binary. Use http://ref.x86asm.net/coder64.html to help you answer the question. For example, the Intel x86 mnemonic for primary opcode 01base 16 which equals 00000001 in binary is "ADD" without the quotes For answer 3, write the binary opcode for the instruction with mnemonic ADD in the ARMv7 CPU's instruction set. For example, the ARM instruction with mnemonic CMP has binary opcode "1010" without the quotes. (Ref: Section 4.5 Data Processing in http://bear.ces.cwru.edu/eecs_382/ARM7-TDMI-manual-pt2.pdf) Do not insert any spaces in your answer ab Op1-Op2Explanation / Answer
1)Write binary opcode for the Java Byte Code instruction that multiplies two integers and stores result
ans) 01101000
explanation :-
"value1,value2-->result" (two integers value1 and value2 (in stack before multiplication)multiply and output in result(in stack after multiplication).
--------------------------------------------------------------------------------------------------------------------------------------------------------------
2) write the mnemonics for the intelx86 instruction that has primary opcode 69 base16
ans)IMUL
Explanation:-
Multiply a register(16 or 32 bit) with an immediate value(16 or 32 bit) and store result in a register(16 or 32 bit).
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3) write a binary opcode for an instruction add in armv7
ans) 0100
Explanation:-
Add two operands and result in a register. Rd:= Op1 + Op2
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.