I want to know how next instruction address (NIA) is calculated for BL instruction. Lets assume that there is such instruction:
.text:100004C8 BL sub_10000670.
This command in hex is:
48 00 01 A9
Here we have that current instruction address (CIA) is
100004C8 and NIA is
10000670. So accroding to this book (page 33 in pdf) we have to concatenate LI (in our case it is
0B00, sign extend it and sunm with 32 high ordered bits of
NIA. The formula is
NIA = CIA + EXTS(LI || 0B00). NIA - CIA = 10000670 - 100004C8 = 1A8.
How can i get from
LI = 6A value? What do i misunderstand?