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
- Dalam usaha memartabatkan profesion keguruan, sejauh manakah permuafakatan komuniti: Pengantar Pengajian Pendidikan Assignment, UUM, Malaysia
- ASC553: An investor has an asset portfolio consisting of 2 assets which are 6-year m% annual coupon bond and 4-year n% annual coupon bond, Assignment, UiTM, Malaysia
- BED15203: Write a C program that prompts user to enter 2 sides of a rectangle and the radius of a circle: Fundamentals Of Programming Assignment, UniKL, Malaysia
- A manufacturer produces a rechargeable earphone at its plants located in Banting, Ipoh and Kulai. The unit transportation cost for shipments: Management Decision Science, Assignment, MMU, Malaysia
- FOBT 3153 Graphical Descriptive Methods and Numerical Descriptive Measure Assignment Malaysia
- Master of Renewable Energy Assignment, UM, Malaysia Malaysia has used renewable energy technology such as biomass, solar and hydro energy for power generation
- ECO7101E: Business Economics Assignment, UOP, Malaysia Discuss the macroeconomic statistics of the country. In your opinion, how did the pandemic of COVID-19
- HMEF5113: Statistics for Educational Research Assignment, OUM, Malaysia Dataset for Assignments 1 and 2 May 2023 Sav was extracted from an experimental research study that was undertaken
- Business Administration Report, UTN, Malaysia Provide a brief discussion on the importance of the external environment and internal analysis of the organizations
- Compare and contrast the Critical Path and Critical Chain methods intermsof their advantages: Project Management Assignment, UM, Malaysia