Question: 2. Write a subroutine named asn that assigns hexadecimal 32 to an element of array A[] which is pointed by the index register. Then
2. Write a subroutine named asn that assigns hexadecimal 32 to an element of array A[] which is pointed by the index register. Then call this subroutine in a loop for each element of A[]. Assume that the array has 5 elements. subroutine asn () { } main () { } A[i]=32H * for each element i of array A[] { } call asn ()
Step by Step Solution
There are 3 Steps involved in it
To write a subroutine named asn that assigns hexadecimal 32 to an element of array A which is pointed by the index register we can use the following code subroutine asn Ai 32H This subroutine simply l... View full answer
Get step-by-step solutions from verified subject matter experts
