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
- ACC116: Introduction To Cost Accounting Assignment, UiTM, Malaysia Identify the cost driver for each of the activity cost pools below Machine cost and Purchase cost
- CSC8016: Advanced Programming Coursework, NU, Malaysia We want to implement a virtual shopping system, whether the threads are either clients using the web app
- History Essay, UniKL, Malaysia Some of the most significant themes in the Elizabethan sonnet sequences include love, time, the value of writing
- XBOH2103: Demonstrate the use of digital technology to support and enhance in managing occupational: Occupational Safety And Health Management Assignment, OUM, Malaysia
- Introduction to Multimedia Assignment, MUM, Malaysia Multimedia can be applied in various areas including, but not limited to, advertisements, art, education, entertainment
- BAC305: Define an associate and Explain how to account for associates in the separate financial statements of the investor: Company Accounting Reporting Assignment, WOU, Malaysia
- BED15203: Write a C program that prompts user to enter 2 sides of a rectangle and the radius of a circle: Fundamentals Of Programming Assignment, UniKL, Malaysia
- TMT2673: Object oriented software development Assignment, UMS, Malaysia Develop ONE (1) activity diagram to represent the general or business process of the proposed system in the Assignment Specification file
- PSY3150 Psychology-Role of Violent Mass Media Assignment, DC, Malaysia Do men and women experience romantic jealousy differently? Address this in relation to relevant theories and empirical evidence
- Nile Inc is considering an investment of capital to be raised: ACCA Advanced Financial Management (AFM) Assignment, UOSG, Malaysia