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
- CES3013: Social and Current Issues in Computing Assignment, UOW, Malaysia Evaluate the implications of social and ethical issues in the development of information systems. Demonstrate awareness of the nature
- BFW3651: Treasury Management Assignment, MUM, Malaysia Due to the multiplicity and complexity of non-financial and financial risks, as well as uncertainties to a bank
- Website Development Report, NEC, Malaysia The owners of the company are eager to have a high-quality website and have asked you to provide them with information
- FA113: Financial Accounting 1 Assignment, RCC, Malaysia The following is the list of transactions for the month of January 2020 for Comfort Furniture a small furniture retailer
- BUS40804: Entrepreneurship Report, TU, Malaysia The social network of my new venture. One of the personal characteristics that make some people better at recognizing opportunities
- SQQS5053:Applied Multivariate Data Analysis Assignment, UUM, Malaysia Show that the following matrix A is an orthogonal matrix Then, compute its eigenvalues and eigenvectors.
- BAC20103: Principles of Accounting Assignment, OUM, Malaysia Apply their knowledge in business and accounting
- BMHR5103: Human Resource Management Assignment, OUM, Malaysia Human resource management has a responsibility to ensure that the organization follows Occupational Safety and Health
- AICT006-4-1-AFM Advanced Forensics Methods Assignment, APU, Malaysia
- Diabetes, Metabolic Syndrome and Obesity Assignment, UM, Malaysia Maturity-onset diabetes of the young (MODY) was first reported in 1974 as mild familial diabetes with dominant