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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started