Question: Write a subroutine called PACK that accepts an arbitrary number of arguments. The arguments are always stored after the BSA instruction in the following order:
Write a subroutine called PACK that accepts an arbitrary number of arguments. The arguments are always stored after the BSA instruction in the following order:
ArgLoc, Arg Arg Arg Arg N
Where arguments Arg thru Arg are random locations of memory, each location containing one character in the lower bits of the location, while the higher bits are all zeros. Assume is always even and is always at least
The value decimal denotes the end of arguments.
ArgLoc is the first argument, and it denotes the starting location in memory where the characters need to be stored consecutively, characters in each location.
Examples:
Assume the memory looked like this before BSA executes.
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
