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 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
- Analyze Shell’s practices and reports on diversity, equality, and inclusion: Managing Decision Assignment, TU, Malaysia
- Psychological Test and Measurements Assignment, OUM, Malaysia Students are required to evaluate the psychological tests and reflect on the usability of the test in the Malaysian context
- BNNS6433: Urinary calculi may remain within the renal parenchyma or renal collecting system: Genitourinary & Endocrine Nursing Assignment, LUC, Malaysia
- Nursing Thesis, USM, Malaysia Physical restraint (PR) is the term used to describe limiting a patient’s motions and preventing them from moving around
- BMNG254: Diploma In Business Administration Assignment, LUC, Malaysia Identify the steps of the quantitative analysis approach and Describe three categories of business analytics?
- Environmental Health Ethics Assignment, MU, Malaysia First-world countries like the USA, the United Kingdom, and other European nations have boasted high rates of recycling
- You have been contracted by Taylor’s Consultancy to undertake a pivotal role: Project Management Assignment, TU, Malaysia
- Critical Academic Reading Course Work, UiTM, Malaysia “The Advantages of Fast Fashion for Consumers” The issue discussed by the author demonstrates how the popularity
- EBB31203: Islamic Financial Plan Construction & Professional Responsibilities Assignment, UBS, Malaysia Shariah is a term used to describe the rules of the lifestyle (Deen) ordained by Allah SWT. It is characterized as a “complete way of life”
- GMKT5213: GreenEarth Organic Products is planning to introduce a new line of organic food: Marketing Management, Assignment, UNIRAZAK, Malaysia