fix: nreg field data type has changed to int32_t.
nreg increments/decrements apis has been added.