My failed attempts to learn TMS320C62 DSP from reference manuals brings me here. Due to absence of literature on this subject in book stores and local libraries, I need your help in understanding the following instruction:
ADDAH (.unit) src2, src1, dst
.unit= .D1 or .D2
The example in the Instruction Set Reference Guide (SPRU731) uses example on page 3-32, 3-33
I found a solution to my own problem on page 3-22 on (SPRU189e)
When in linear mod, src1 is left-shifted (it's value doubled) and than added with src2. The result is placed to specified destination.
When in circular mode, the contents of src1 are left shifted and added with src2. However, due to circular buffer configuration, the specified buffer size that is set by BK0 bit happens to be 8 bytes in the example (buffer size 2^(n+1) = 8 bytes). The left shifted value of 22 is 14 bytes larger than the buffer. From what I figured out, 14bytes gets rounded up to 16bytes. Than 116H - 10H (16) = 106H