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
- BBF305/03: Investment and Portfolio Management Assignment, WOU, Malaysia Evaluate the three mutual funds using Sharpe and Treynor measure and Given the risk-free rate is 5%
- International Management Case Study, APU, Malaysia In a group consist of five (5) students, you are required to select a multinational company (MNC) as the basis of a case study
- BM004-3-1 BCS Business Communication Report, APU, Malaysia As a newly hired Chief Social Media Manager for the head office of an international organisation
- Discuss the following topic(s) in the forum and submit proof of your participation: MPU Essay, MSU, Malaysia
- SFUF0393: Fundamental in Psychology Essay, UIU, Malaysia Discuss the basic psychology of human behavior. Apply the appropriate reasoning processes in arriving at conclusions
- BFIN2213: Principles of Finance Assignment, UTAR, Malaysia Select a public listed company and prepare an assignment paper on financial issues and strategies adopted by the financial management
- BBM207: HRM in the ‘New Millennium’, discuss on the changing roles of HR in accordance to that: Human Resource Management, Assignment, WOU, Malaysia
- Certified Financial Planner Assignment, UTAR, Malaysia Some weeks ago, you (Danny Lim) a Certified Financial Planner (CFP) and a licensed Financial Planner met your old friend
- STA404: Statistics for Business and Social Sciences Assignment, UiTM, Malaysia A dairy products factory wants to know the milk flavor preferred by the buyers
- Customers enter the waiting line at a cafeteria’s only cash register on a first-come, first-served basis: Optimization Technique Assignment, UMP, Malaysia