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
- MEC442 Pump Selection Assignment 2: Evaluate Head & Flow for Pump A and B in Series and Parallel Configurations
- Online Order Management System Assignment, APU, Malaysia
- DSC763: Customer Analytics Case Study, UiTM, Malaysia A telecommunication company, MAYS Private Limited, wants to improve its customer experience with services
- Suppose the PDA P = (Q= {go, q1}, Σ={0,1}, r={Zo, X}, &, qo, z=Zo, F={q1} ) has the following transition function: Automata theory, Assignment, UMS, Malaysia
- BLO3405: Law Of Financial Institutions Assignment, VU, Malaysia Adrian is a chef from New Zealand and has recently moved to Melbourne He is keen to open up a Café in St Kilda
- Understanding Ethics and Civilization Report, USM, Malaysia The explanation of location, the community involved, the year and month the issue happened, and the causes
- EEE40002: Integrated Circuit Design Assignment, SUT, Malaysia Ability to evaluate the CMOS transistor characteristics and Conduct investigations of complex problems using research-based knowledge
- UBFF2013: Write a review of the profitability ratio and market ratio (Year 2020-2021) of the FIVE (5) stocks: Business Finance Assignment, UTAR, Malaysia
- Fast Mawar Bhd is a company that manufactures box mowers, It had net income of $ 15 million on revenues of $ 50 million last year: Financial Management, Case Study, UTM, Malaysia
- SBFS1103: Thinking Skills and Problem Solving Report, OUM, Malaysia Assuming you are a production manager in a semiconductor manufacturing company in Penang