Extend the SQUARES program in Chapter 1 in order to compute a list of values of one of the following polynomials for integer values of N from 1 through 9, again without using explicit multiplication instructions. Hint: Use a repeat block.
N2 + N
2 N2 + 1
N2 + N + 2
Store the function values in memory locations. Use an examine command of the debugger to inspect the results.
2:
Use a repeat block to construct a data section containing 25 instances of a record structure that provides five quad words for a part number, a quantity, a cost, a selling price, and a net profit, and then 40 bytes for a description. Note that the resulting memory region comprises an array with one row per part and six columns for the specified fields of information.
3:
Use a repeat block with .irp to construct a data section containing five successive 25-element vectors labeled NUMBER, COUNT, COST, PRICE, and PROFIT. Then allocate a space at label NAME for 25 strings of 40 bytes in length. Draw a sketch that shows how this data region differs from the one that would result from exercise 2 above.