Added putsreg8 subroutine