The Rx3i permits using input addresses for output instructions. I have done it, but not exactly the same as you've shown. Instead of using a bit of a WORD variable, I always used the absolute address for the -( )- instruction. So I would have used boolean variables %I00177 and %I00178 instead of %I00177.0 and %I00177.1.