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
- AICT006-4-1-AFM Advanced Forensics Methods Assignment, APU, Malaysia
- Using IRAC method Scenario You are employed by Events Management Ltd in the business acquisition: Business Laws Assignment, HU, Malaysia
- FAR210: As at 31 December 2022, a physical stock count was carried out to determine the value: Financial Accounting III Assignment, UiTM, Malaysia
- Democracy and Society Essay, UKM, Malaysia- Apply the concepts of democracy that have been discussed in class to reflect on a case study of a particular
- BAC305: The following are the statements of financial position for Jack Berhad and Jill Berhad as at 31 December 2022: Company Accounting Reporting Assignment, WOU, Malaysia
- Treasure Management Essay, TARC, Malaysia Due to the multiplicity and complexity of non-financial and financial risks, as well as uncertainties to a bank
- CBMS4303 MANAGEMENT INFORMATION SYSTEM
- BEC1624: Macroeconomics Assignment, MMU, Malaysia This follows a stronger-than-expected recovery of 7.8 percent last year. Malaysia’s strong performance in 2022
- BAPS2003: Basic Power System and Electric Machines Assignment, UON, Malaysia What are the tests that should be conducted to ensure the efficiency of the transformer:
- Accounting and Business Finance Dissertation, HWU, Malaysia It should be read in conjunction with the material available on CANVAS