ld: cloned from tic4x