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 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
- Identify the problem(s) related to the theme Provide background and supporting data: Blockchain Economics Assignment, UniKL, Malaysia
- BBUI3103: Employment And Industrial Law Assignment, OUM, Malaysia Identify and discuss tests that are usually considered by the court in determining the employer-employee relationship
- MGT4231E: Intercultural Management Assignment, IIU, Malaysia The key to a successful organization is to have a culture based on a strongly held and widely shared set of beliefs
- FIT3179: Data Visualisation Assignment, MUM, Malaysia The aim of the assignment is to apply the data visualisation techniques examined during the entire semester
- Object-oriented development with Java Assignment, APU, Malaysia APU Cafeteria Ordering System identify a business domain for a cafeteria. Construct a software solution using an object-oriented programming paradigm to support user registration
- Marketing and Management Essay, APU, Malaysia Describe how these marketing environmental factors, such as demographic, economic, socio-cultural, and technological forces
- DBC212 Poster Preparation Guide and Development
- CDDS2103: Discuss the following topic(s) in the forum and submit proof of your participation in the online discussions: Introduction to Data Structure Course Work, OUM, Malaysia
- History Essay, UniKL, Malaysia Some of the most significant themes in the Elizabethan sonnet sequences include love, time, the value of writing
- ENT600: Technology Entrepreneurship Case Study, UiTM, Malaysia A case study is an account of an activity, event, or problem that contains a real or hypothetical situation