Master Engineering with Fun Quizzes & Brain Teasers!
The following program compares two ASCII character strings of the same length. One string starts in memory location x5000, the other starts in memory location x6000. The characters are stored in a sequential series of memory addresses, and the last such address contains an ASCII NUL x00 (used as sentinel). If the strings are the same, the program terminates with the value +1 in R0, otherwise the program ends with the value -1 in R0.Insert the missing instructions in the code below. You do not need to submit the program, only the missing instructions, referring to their respective number..ORIG x4000___________________ ; Insert instruction a.i) hereLD R1, STRING1LD R2, STRING2NEXTCHAR LDR R3, R1, #0LDR R4, R2, #0BRz EQUAL___________________ ; Insert instruction a.ii) here___________________ ; Insert instruction a.iii) hereNOT R3, R3ADD R3, R3, #1ADD R4, R4, R3BRz NEXTCHARADD R0, R0, #-1___________________ ; Insert instruction a.iv) hereEQUAL ADD R0, R0, #1STOP HALTSTRING1 .FILL x5000STRING2 .FILL x6000.END