Replace assembly part of the code with C alternative

add new method to access constant table registers introduced in TI C PRU compiler 1.1.0B1 and __halt() procedure introduced in v2.0.0B1