So will my code work too? Compared to my source, your source is smaller and probably more efficient. Is thumb more efficient with codes like this?

Edit: Fixed typos.