Question: LC3Decoder: Create this program in java programming language. This program takes a value n as a command line argument, where n can be binary (starts

LC3Decoder: Create this program in java programming language. This program takes a value n as a command line argument, where n can be binary (starts with b or B) or hex (starts with x or X) value. The program then outputs the LC3 assembly instruction that corresponds to n, if any. Input should be of 16 bits, if binary starts with b or B and 4 bits , if Hexadecimal starts with x or X. For example: If input is : b0101010010100000 then output should be : AND R2, R2, OFFSET = 0. If input is : x1B7F then output should be ADD R5, R5, OFFSET = -1.

Can anyone please help me with this. I am really in trouble. Thank you!!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!