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
- Management and Administration in Nursing Assignment, CU, Malaysia You have identified that you want to move into or progress your clinical or administrative leadership and management
- CIS2021-N: Web Apps and Services Assignment, TU, Malaysia You work as a software developer for the fictitious ThreeAmigos Corp and The company wishes to overtake its rival ManshaCo
- You are working as a Human Resources Manager in a medium-sized company: Quantitative Methods for Business Research, Assignment, MSU, Malaysia
- Take the last available Z-score as a base, recommend possible actions that can be taken based: Financial Modelling Assignment, MUM, Malaysia
- Unit 1: In your organization, what differences do you notice in recruitment in Post COVID-19 time, when you compare that with pre-COVID-19 time: Human Resource Management, Assignment WOU, Malaysia
- BBM207: HRM in the ‘New Millennium’, discuss on the changing roles of HR in accordance to that: Human Resource Management, Assignment, WOU, Malaysia
- Object Oriented Programming Assignment, UKM, Malaysia A student class has the following properties: Data Member Sample Data ID 2345, 4001 scores 56, 87, 0, 70 grade ‘A’, ‘B’. Methods public int getId()
- FEEP LTO ODL the Role of AI in People Management: Insights from an HR Practitioner in Malaysia
- What are the different representations constructed for the victim in the headlines?: The Representation of Social Actors in News Headlines of Bella Abuse Case Research Paper, Malaysia
- KNC6063: Energy And Environment Law And Policy Assignment, UMS, Malaysia Explain the relevant energy and environmental policies or related acts applied to the energy management for a chemical factory