group0 array transformed to signed int and small corrections
old pc is saved if current page changes. Removes one assignment in loop
Removed some logical ands. The sign extend commands do the same