Exercises

1: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.
  1. N 2 + N

  2. 2 N2 + 1

  3. 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. ...

Get Itanium® Architecture for Programmers: Understanding 64-Bit Processors and EPIC Principles now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.