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 Malaysia (MUM) |
| 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
- Discuss briefly the pathophysiology and clinical manifestations of breast cancer: Obstetric and Gynaecology Assignment, UOM, Malaysia
- Accounting and Finance Report, UM, Malaysia You are to choose an audited annual report of listed companies in Bursa Malaysia
- Educational Statistic Assignment, UMT, Malaysia Generate a frequency count and histogram with a normal distribution curve for Pretest science scores
- Financial Management Assignment, UniKL, Malaysia Mr.Shahrul Affendy had been appointed to lead the finance team of Extreme Broadband Corporation
- Information Marketing Assignment, TU, Malaysia An info product is any product that can be digitally created, sold, and transferred to your customer
- ABCR2103: This assignment aims to assess students’ understanding of the roles and functions of corporate communication: Principles Of Corporate Communication Assignment, OUM, Malaysia
- Probability Home Work, HWU, Malaysia The multiplication rule for dependent events is used since we are interested in the first player being a senior
- CBCT2203: Basic Concepts Of Information Technology Assignment, OUM, Malaysia Today, Information and Technology development and sophistication are viewed as significant phenomena
- MPU3313: Health and Wellness 2 Assignment, OUM, Malaysia Based on the definition of “health” by WHO, use the relevant resources to explain the status of each of the following characteristics
- CSC408: Information System and Management Case Study, UiTM, Malaysia Manufacturers are experiencing a turbulent global environment that embodies challenges, opportunities, and uncertainties