FIT1047: User input (4 points) The next step is to implement a subroutine that reads a string, character by character: Introduction to computer systems, networks and security Assignment, MU, Malaysia
University | Monash University (MU) |
Subject | networks and security Assignment |
Task 2.4:
User input (4 points) The next step is to implement a subroutine that reads a string, character by character, using the Input instruction. The subroutine takes an address as its argument which is the location in memory where the string should start. The label for that address should be Input String Start. Your code should initialize a label Current Character Location to the location of the first character in the string (i.e., leaving one location empty for the size of the string).
Your code then runs in a loop like this: – Get one character from the user using the Input instruction – If the input is not 0 (the integer 0, not the ASCII character 0), write the character into Current Character Location, increment Current Character Location by one, and start the loop again. – If the input is 0, store the size of the string in Input String Start and return from the subroutine. Note that you can switch the input box in the MARIE simulator into different modes: use the UNICODE mode to enter the characters, and use Hex or Decimal to enter the final 0 (since the character ‘0’ is different from the integer 0).
Get Solution of this Assessment. Hire Experts to solve this assignment for you Before Deadline.
Get Help By Expert
Looking for assistance with your FIT1047 Networks and Security Assignment? Explore our specialized services – Assignment Helper and bespoke Homework Writing Help in Malaysia exclusively crafted for Malaysian students. Our experts stand ready to provide dedicated support, ensuring a thorough grasp of the assignment's intricacies. Malaysian students can now confidently navigate their coursework by relying on our qualified professionals.
Recent Solved Questions
- Management Assignment, SU, Malaysia You must use probability concepts and decision tree analysis to help you prepare the report
- Computer Science Assignment, UTM, Malaysia Supermarkets are enormous businesses that utilize a lot of data. Supermarkets have steadily taken up a larger
- BMG302/03: The Johari Window is a model that helps individuals understand their relationships with themselves: Organizational Behavior Assignment, WOU, Malaysia
- Principles of Economics Essay, UMS, Malaysia Analyze how microeconomics models can be used to consider fundamental economic choices of households and firms
- STA404: Statistics for Business and Social Sciences Assignment, UiTM, Malaysia The depression scores of 25 patients were recorded before and after they had undergone therapy
- BFW3651: Treasury Management Assignment, MUM, Malaysia Evaluate and provide a historical overview or background of the Sri Lanka’s exchange rate system
- Management Assignment, MU, Malaysia Select any ONE restaurant chain in Malaysia that you are familiar with. Compare decision-making in certain conditions
- INF20003: Requirements Analysis and Modelling Case Study, SUT, Malaysia Whirlwind Courier Services As an employee of a large international courier and shipping service, Mike Morten met
- Statistics and Decision Analysis Report, APU, Malaysia The current dataset is related to the basic items from grocery section of 4 different hypermarkets in Malaysia
- Accounting Assignment, UPM, Malaysia Tujuan tugasan ini adalah untuk meningkatkan kcholchan pclajar mernahamt transaksi transaksi perakaunan