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
- GSGM7223 Organisational Development and Change Management Assignment, Malaysia
- BBMC4103: Change Management Assignment, OUM, Malaysia Few firms can thrive in the face of constant change Although change is difficult to accept, it is your responsibility
- CT108-3-1 Python Programming (PYP) Assignment, APU, Malaysia Groceries Management System (GMS) Due to busy schedule, most of us prefer online shopping even to buy groceries and household items
- Accounting and Finance Assignment, APU, Malaysia M Hidayah is a sole trader who maintains his non-current assets at cost On ‘ Rajni December 20X1
- SBFS1103: Thinking Skills And Problem Solving Assignment OUM Malaysia The purpose of the assignment is to expose learners to various problem-solving strategies
- ACCT2111: Accounting Thoughts and Ethics Assignment, RMIT, Malaysia Critically evaluate and apply accounting theories to complex cases to solve ethical accounting issues
- CXD1203: DATABASES 1 Assignment, SC, Malaysia Consider the following set of requirements for a worldwide package delivery database that is used to keep track of couriers who ship parcels
- GSGM 7324: UIU Assignment: Organizational Development and Change Management
- Ernest Shackleton’s Leadership & Gig Economy’s Impact
- B7LW100: Business & Company Law Assignment, DBS, Malaysia Discuss the exceptions in the communication of acceptance and This discussion should be supported