intrax8: move functions from dsputil to own context