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
- OUMH2203: You are an English language trainer working for a multinational company in Kuala Lumpur, Malaysia: English For Workplace Communication Assignment, OUM, Malaysia
- Management & Innovation Report, HWU, Malaysia Prepare a detailed report in terms of identifying the current innovation challenges of the organization
- ABPR1103: Statistics for Psychology Assignment, OUM, Malaysia A psychologist studied the number of hours a worker sleeps at night and the number of errors made in a given task
- MAF653: What are three (3) key differences between Fintech and Islamic Fintech: Financial Markets, Course Work, UiTM, Malaysia
- Critical Thinking Communication Assignment, UMS, Malaysia The authors sought to understand the types of parent involvement that teachers, parents, and students believe affect
- BFW2751: Derivatives 1 Assignment, MUM, Malaysia Nancy Lim a financial analyst, is looking for your guidance regarding her new investment portfolio, which is worth $2 million
- GEO ENGINEERING Essay, UITM, Malaysia Evaluate the role of Ocean fertilization in addressing climate change In the introduction briefly explain climate change and ocean fertilization
- European Union Law Coursework, UOW, Malaysia On 9th November 2022, a newly established Spanish company called ‘’The Lovely Liquor Company’’ was transporting 500 bottles
- MANAGEMENT INFORMATION SYSTEM Assignment, UITM, Malaysia The IT department is significant in maintaining communications networks for small and large businesses
- Medical Surgical Nursing Assignment, IMUM, Malaysia Explain the pathophysiological basis of altered functions of the renal, integumentary, immune, eastro-intestmal