16-bit x 16-bit = 24-bit Operation

The routine’s functionality is illustrated in the figure below. For the 24-bit version of the multiplication routines, the result is present in registers r18:r17:r16. The algorithm gives correct results provided that the product C = A • B is less than 224 when using unsigned multiplication, and less than ±223 when using signed multiplication.

Figure 1. 16-bit Multiplication, 24-bit Result