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
- PGBM150: Innovation Entrepreneurship & Technology Transfer Report, SU, Malaysia The assessment has been specifically designed to accommodate the students varying commercial knowledge and understanding of module content
- MQB7006: Principles of Biostatistics Assignment, UM, Malaysia Describe your statistical analysis plan., data cleaning, and data analysis. Provide cross-tabulation between sociodemographic
- Development and implementation of an effective quality management strategy require organisations: Quality Management Assignment, OUM, Malaysia
- CSC2773: Local Area Networking Technologies Assignment, KPTM, Malaysia The board director of Cekap Memandu Institute is looking forward to the possibility of connecting all places
- Electrical Technology Assignment, UKM, Malaysia Analyze the circuit using, the nodal method, and find the value of voltages at nodes A, B, and C
- UGB363: It is 31 January 2024 and the managers of Redsea are considering a change in the company’s dividend policy: Strategic Corporate Finance Assignment, USM, Malaysia
- The strategic role of HRM is becoming vital in ensuring the success and failure of business operations: Strategic, HR Planning, Selection and Recruitment Assignment, OUM, Malaysia
- Advance Financial Accounting Home Work, SU, Malaysia Ruby Berhad, a Malaysian company signed a contract on 1 December 2019 to buy machinery from Ecuador payable
- Introduction to Business Ethics and Values Assignment, LUC, Malaysia The role of Small and Medium Enterprises (‘SMEs’) in the Malaysian economy is undoubtedly important
- BFW2341: International Financial Management Essay, MUM, Malaysia Explore the international financial environment and the importance of foreign exchange risk management