Question: (Passing argument using registers and using a for-loop) Write a subroutine to compare two equal sized character strings. The number of characters in the string
(Passing argument using registers and using a for-loop) Write a subroutine to
compare two equal sized character strings. The number of characters in the string is in
register B. The starting address of one string is in register X. The starting address of the
other string is in register Y. If the strings are equal, the subroutine returns a $22 in
register B. Otherwise, the subroutine returns a $33 in register B.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
