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
- You are expected to conduct a presentation of the feasibility of the project based on the location: Project Management Assignment, TU, Malaysia
- FIN10004: Customers in the Corporate segment are often more likely to place larger orders than their consumer counterpart: Financial Statistic, Report, UTM, Malaysia
- International Business Issues and Polices Assignment, APU, Malaysia Poverty is considered one of the major hindrances to the economic development in the least developed countries
- Methodology Case Study, MUM, Malaysia In any industry, few organizations may face communication as a barrier to moving further, and also it can be difficult
- Employee Mental Health Research Paper, MUM, Malaysia If employees’ well-being and mental health are not in stable position they are also not able to focus on their tasks
- MANAGEMENT INFORMATION SYSTEM Assignment, UITM, Malaysia The IT department is significant in maintaining communications networks for small and large businesses
- Management Assignment, MU, Malaysia Select any ONE restaurant chain in Malaysia that you are familiar with. Compare decision-making in certain conditions
- Data Organization and Management in Daily Life
- MPU3412: Bincangkan topik berikut dalam forum dan serahkan bukti penyertaan anda dalam perbincangan dalam talian: Community Service Assignment, OUM, Malaysia
- TMF1414: Introduction to Programming Assignment, UMS, Malaysia Distinguish the basic problem-solving techniques in developing algorithms and programs for given problems