Changed the getReg and setReg functions so that they work like netbsd. Apparently...