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
- Human Resource Management Assignment, SU, Malaysia KPMG’s global 2020 HR Pulse Survey received responses from nearly 1,300 HR executives worldwide across diversified
- CSC584: Enterprise Programming Assignment, UiTM, Malaysia MyBaju Sdn. Bhd. is a Baju Melayu specialist company in Melaka. The company’s custom and tailor-made Baju
- MOM705: Operations Management Assignment, AeU, Malaysia Ali makes ping-pong balls in his Malaysia plant. With recent increases in his costs, he has a newfound interest
- Business Professional Ethics Case Study, UTHM, Malaysia This Milk manufacturer is based in Port Klang, Selangor. The Managers of the company are very friendly with the customers
- Business Law Assignment, TU, Malaysia AngTiong offered to sell his pharmacy to Zol for RM1 million via letter
- Analytics/justifications/pros and cons – for the improvement of human life?: Data Assignment, HWU, Malaysia
- This Industrial Project (assignment) would be undertaken at your department or organization: industrial project Assignment, UMP, Malaysia
- MPU3223/03: Decision Making Skills Assignment, WOU, Malaysia What are the challenges that you face when making decisions at the workplace
- Engineering Software and Applications Assignment, APU, Malaysia In signal and system engineering, there are many transformation techniques available to convert certain signals into specific formats
- PHYS1010D: A basketball player attempts to siioor from the position as shown in FIGURE 1 below. The angle o is the shooting angle: General Physics Assignment, Singapore