compared codes and rearranged sequence

to test if working on actual hardware before finalizing
changed initialization sequence and InitSysCtrl();
InitPieVectTable() has difference but des not appear to have any impact
- to check later