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
- HRM3183: Car Restoration Business (CRB, Inc.) is interviewing you for a position as its human resources manager part-time: Performance Management Case Study, UPTM, Malaysia
- ACF3600: Auditing and assurance Assignment, MUM, Malaysia Audit and climate change Climate affects nearly every aspect of our lives, from our food sources to our transport infrastructure
- Economics Assignment, UITM, Malaysia Economics is the study of how society manages its scarce resources. Discuss the problem of scarcity in Malaysia
- LGV7034: The risk manager has an important role to play in an organisation’s risk management: Risk Management Individual Assignment, VUC, Malaysia
- ESE633: Statistics of Education Assignment, AeU, Malaysia An English test was administered to two classes of secondary school students. Explain the distribution
- Company and Business Law Assignment, BAC, Malaysia Demonstrated ability to identify a legal issue arising from a set of facts. Demonstrated ability to apply a relevant
- PBS3233: International Business Assignment, KPTM, Malaysia The economic system in the world refers to the way in which countries organize their economies to allocate
- Foundation English Essay, UON, Malaysia Since the Covid-19 outbreak, there has been a great increase in the number and variety of online courses available to students
- Based on the short story Lamb to the Slaughter by Roald Dahl: Introduction to literature Assignment, UNM, Malaysia
- Human Resource Management Assignment, OUM, Malaysia Identify THREE (3) key talent management issues faced by multinational corporations in aligning their people-management policies