moved registers to machine, changed return to 0 (from 7) and erased all integer references to registers