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 1, Arg 2, Arg 3,...... Arg N,-1
Where arguments Arg 1 thru Arg N are random locations of memory, each location containing one character in the lower 8 bits of the location, while the higher 8 bits are all zeros. Assume N is always even and is always at least 2.
The value -1(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, 2 characters in each location.
Examples:
Assume the memory looked like this before BSA executes.
AddressContent088?'Adots?096?'Fdots?09A?'Tdots?0A3?dots?OBB?0BC?
 Write a subroutine called PACK that accepts an arbitrary number of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!