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
- Analyse the challenges for the business to go international using digital marketing and give suggestions to overcome the challenges: Digital Marketing, Assignment, Malaysia
- Marketing Management Essay, HWU, Malaysia Is Tom’s of Maine toothpaste really green if consumers leave the water running while they brush their teeth
- DSC2034: MATHEMATICS Assignment, ASB, Malaysia Evaluate without a calculator, using the BODMAS order of operations
- MHRD510: Global Human Resource Management Research Paper, HU, Malaysia Expatriates are employees who leave their country of origin in order to work and reside in another country
- BUSN11076: Strategic Business Project Dissertation, UWS, Malaysia Critically evaluate research approaches and methods in the context of business and management
- Digital Electronics Assignment, SU, Malaysia Implement the counter using JK flip-flop, and assume that any unused states can be considered ‘don’t care states
- Business law Essay, MUM, Malaysia Mei saw an advertisement by Amazing Tours in the newspaper: ‘Fabulous deal: Bali from RM 999 for 2
- Discuss the importance of effective group communication in organizational settings: Organizational Behavior Assignment, UiTM, Malaysia
- Microeconomics Assignment, HWU, Malaysia Plastic is a critical component of the modern economy and plays a significant role in various industries
- BBF305/03: Investment and Portfolio Management Assignment, WOU, Malaysia Evaluate the three mutual funds using Sharpe and Treynor measure and Given the risk-free rate is 5%