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
- KT24403: Operating Systems Assignment, UMS, Malaysia There are N philosophers and N forks, the philosophers represent processes and forks represent resources
- The current dataset is related to the basic items from grocery section of 4 different hypermarkets in Malaysia: Statistics and Decision Analysis Report, INTI International University, Malaysia
- BBCM4103 Compensation Management Assignment, OUM, Malaysia
- Circuit Analysis Assignment, CUCST, Malaysia Each group needs to design its own circuitry to wire the electric radiators to the power supplied to the garage
- BTA3324: Sales and service tax (SST) was reintroduced on 1 September 2018 to replace goods and services tax (GST): Taxation 2 Assignment, UOW, Malaysia
- BNNS6243: Gastrointestinal Nursing Assignment, LUC, Malaysia Discuss the prevalence of colorectal cancer both globally and in Malaysia, and the contributing factors to its incidence
- MPU3233: Plastic bags are commonly used on a daily basis; however, these seemingly insignificant: Design Thinking Assignment, UIU, Malaysia
- Transnational Management Case Study, UNM, Malaysia Budgetmart, a U.S. discount retailing was established in the 1980s by John Victor near Norwalk, California
- BBF305/03: Investment and Portfolio Management Assignment, WOU, Malaysia Corus Berhad is interested to invest in bonds Currently, the financial manager is evaluating both Bond A and Bond B
- Pharmacology Assignment, UKM, Malaysia Today a 25-year-old male presented to the pharmacy and expressed concern to the pharmacist about the frequency