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 Malaysia (MUM) |
| 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 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
- For the assignment, you are required to explore the application of Applied Machine Learning (AML): Applied Machine Learning Assignment, AUTI, Malaysia
- Contract Law Assignment, OUM, Malaysia The High Court in Sri Kaiang Rock Products Sdn Bhd v Mayban Finance Bhd (19921 1 CU 204 stated at p 206
- Research Project Assignment Report: Strategic Analysis and Performance Evaluation of Top Glove Corporation Berhad
- Statistical Decision Making Assignment, SU, Malaysia Briefly describe your chosen research area or problem statement, and identify the issues to be investigated
- Introduction to Hospitality Essay, TU, Malaysia Labor crunch main stumbling block to hospitality recovery in Malaysia” According to this headline
- Business Economic Case Study, UNM, Malaysia Consider a firm facing conventional technology with U-shaped
- Business Statistics Assignment, SU, Malaysia In statistics, there are dependent and independent variables. Dependent variables are so-called because
- Procurement Management Case Study, TARC, Malaysia Critically discuss pertaining to the FIVE (5) important viewpoints on what makes a Good Project Manager to decide on the above matter
- JFP463E: Finance Assignment, USM, Malaysia Conduct interviews with 5 investors/respondents to explore and understand their investment behavior
- D2FIN100: Introduction to Finance Assignment, HU, Malaysia Suppose the stock of Host Hotels & Resorts is currently trading for $20 per share. If Host does a 3:2 stock split