![SmartScholar4094](/avatars/6086.jpg)
SmartScholar4094
11.12.2019 •
Computers and Technology
Lc-3 assembly language.
one of the things an assembler has to do is take assembly language instructions (like add, and, and jmp) and convert those into binary opcodes. each assembly instruction has a corresponding 4-bit binary opcode. for example, the binary opcode for add is 0001, for and it's 0101, and for jmp it's 1100.
write an lc-3 assembly language program that does the following:
output a message to the screen that prompts the user to type in an lc-3 assembly language instruction (like add). the user ends their input by pressing enter/return.
if the instruction typed by the user is a legal lc-3 assembly language instruction, your program displays the corresponding 4-bit opcode. for example, if the user types "add", the program would print out "0001".
if the instruction typed by the user is not a legal lc-3 assembly language instruction (for example, "addd"), your program displays an appropriate error message.
after displaying the output, your program loops back to the top, reinitializes anything that needs to be reinitialized, and goes again.
your program will exit when the user types the string "quit" and presses enter/return.
note: your program must treat input as case insensitive, meaning that the user can type their input in any combination of upper and lower case. for example, "add", "add", and "add" would all be legal instructions.
note: as the user types an instruction, your program should echo each typed character to the monitor so they can see what they're typing.
Solved
Show answers
More tips
- F Food and Cooking Red Caviar: How to Choose the Best?...
- C Computers and Internet Clearing Cache: How to Speed Up Your Browser...
- S Style and Beauty How are artificial nails removed?...
- S Style and Beauty Secrets of Tying a Pareo: 5 Ways...
- F Food and Cooking Everything You Need to Know About Pasta...
- C Computers and Internet How to Choose a Monitor?...
- H Horoscopes, Magic, Divination Where Did Tarot Cards Come From?...
- S Style and Beauty How to Make Your Lips Fuller? Ideas and Tips for Beautiful Lips...
Answers on questions: Computers and Technology
- C Computers and Technology BRAINLIEST IF U SAY IN CAPS NOT ALOUD TO COPY...
- C Computers and Technology The terms personal computer and microcomputer are interchangeable true or false...
- C Computers and Technology Part of metacognition involves making a plan to address ....
- H History Which two statements are true about the members of the Creek tribe after the Civil Wal! They rebelled because they felt that government funds were not being shared fairly....
- C Chemistry True of falseThe joints between the vertebrae allow slight movementbecause they are condyloid joints...
- C Chemistry Which of these carboxylic acids would be expected to have a major peak at m/z=57 in its mass spectrum? A) CH3CH2CH2COOH B)CH3COOH C) (CH3)2CHCOOH D) CH3CH2COOH...
- E English PARAGRAPH ABOUT GREEN HOUSE EFFECT (WORDS LIMIT 150)...
- B Biology Can someone answer these for me? They are true or false...
- M Mathematics It rained 7 times during our holiday. If it rained in the morning, it was sunny in theafternoon. If it rained in the afternoon, it was sunny in the morning. There were...
- M Mathematics What is the domain of this exponential function?...
Ответ:
Option(b) is the correct answer to the given question .
Explanation:
The main objective of the port number in the transmission control protocol or the user datagram protocol is clearly defining the particular process with which the information must be given.
The primary function of the Transmission control protocol or the user datagram protocol port numbers is to monitoring at the same time the various responses that passing the network. So, by using the TCP / UDP, we can find the e application protocol.
All the other option are not identified by the TCP and UDP so these are incorrect option .