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
- FFN20303: How much would you have had to invest 21 years ago (t) in an account paying 6%(r) compounded: Money And Capital Market Assignment, MSU, Malaysia
- Computer Programming Assignment, APU, Malaysia Write a C function named CalDeposit() that calculates the amount of deposit money that needs to be prepared by the home buyer
- How might Nestlé strategize for the global expansion of its sustainability initiatives: marketing management Assignment, IIU, Malaysia
- PSY3150 Psychology-Role of Violent Mass Media Assignment, DC, Malaysia Do men and women experience romantic jealousy differently? Address this in relation to relevant theories and empirical evidence
- BBM102: Microeconomics Assignment, WOU, Malaysia Consider Figure 1 below, which depicts the rubber market in Malaysia At the initial market equilibrium
- SKAA4313: Advanced Reinforced Concrete Design Assignment, UTM, Malaysia: A footbridge is required to provide communication between residential areas on either side of a dual carriageway road
- LA111 Communication Skills Group E (Non – Quota) Holiday Task | CBU
- EEE3473: Digital System Assignment, UPNM, Malaysia Design a 4-bit BCD adder that will add two BCD numbers and produce the sum in BCD format. If the sum of two numbers
- Advanced process integration Assignment, CU, Malaysia Determine the minimum fresh water and minimum wastewater targets for the above system using water cascade analysis
- Consider, if feasible to do so, reporting the number of records identified from each database or register searched: Advanced Nursing Research Assignment, IIUM, Malaysia