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
- ESEB2054: TOMORROW marks the start of a new year, bringing with it the opportunity to enhance Malaysia’s education sector: Curriculum Development Assignment, UNITAR, Malaysia
- Oncology Nursing Essay, OUM, Malaysia Madam D, a 30-year-old accountant with a diagnosis of colorectal cancer stage 3 has undergone surgery
- Financial Analysis Report, SU, Malaysia You need to find the price, the coupon payment, the current yield, the price at +1 bps, and the PVBP
- Using IRAC method Scenario You are employed by Events Management Ltd in the business acquisition: Business Laws Assignment, HU, Malaysia
- CBWP2203 Tugasan : Sep 2024 – Pengaturcaraan Web, OUM, Malaysia
- ACC30305: Principles of Accounting Assignment, TU, Malaysia Mr Peter, a sole trader, started his frozen food business on 1st January 2021 under the name of Peter Frozen Enterprise
- SQG2613: Research Methodology Research Paper, UTM, Malaysia Investigate current study trends based on the selected study areas related to Civil Engineering
- AINT003-4-C: You are required to develop a website with an appropriate web development tool: Web Design And Technology, Individual Assignment, APU, Malaysia
- Interior Architecture Essay, TU, Malaysia Explore the significance of either the mobile phone or social networking websites in the 21st Century
- BNNS 6234: Cardiovascular and Respiratory Nursing Essay, LUC, Malaysia Discuss the Management of patients with Underwater Seal Drainage focusing on nursing responsibilities