Fixed issue #182 loop instruction not working.
Merge pull request #183 from rdnelson/loop_fix

Fixed issue #182 loop instruction not working.