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
- SBSF1103: Thinking Skill Essay, OUM, Malaysia A team of five persons is responsible for negotiating the prices of cables that suppliers provide to your company
- Faculty of Pharmacy Assignment, AU, Malaysia Memory is defined as the faculty of encoding, storing, and retrieving information. The classical multi-store model
- Financial Management Assignment, UKM, Malaysia According to the SME Corporation Malaysia, SMEs are defined as firms with sales turnover not exceeding RM50 million
- LGP7024: “Article 121(1A) “does not oust the jurisdiction of the civil courts nor does it confer judicial power on the Syariah Courts”: Malaysian Legal System Assignment, VUS, Malaysia
- Employment Law Course Work, UiTM, Malaysia Seb has been employed by Longton Water Company plc, Northampton, maintaining and repairing water pipes since
- Environmental Economics and Environmental Management Thesis, UOY, Malaysia Provide a theoretical and empirical review of Public Preferences attributed to conservation management
- Finance Assignment, MSU, Malaysia KAWAN FOOD BHD Identify any 4 sources of financing (e.g. ordinary share, bond, term loan, overdraft, trade credit, hire purchase, etc) used by the company and discuss the advantages and disadvantages of each source
- JAVA Programming Level 1 Assignment, UNIKL, Malaysia The management of an airport thinks that the way in which the airport is operated means that incoming flights
- Nursing Assignment, IMC, Malaysia Diabetes mellitus is a growing public health problem affecting people worldwide, with a rapidly elevating prevalence
- BAC3644: Taxation 2 Assignment, MMU, Malaysia Platina Jubilee Sdn. Bhd. was incorporated in Malaysia on 5th May 2017 with an authorized ordinary share capital