Here’s my solution (it’s the one from the book):
And here’s the link:
http://www.lodev.org/jstumble/?board=00llllr0r0eellller0r0eellllerrr0eerilfrlfexfl
Description: Both registers count down in turn. When register A underflows (tries to go below 0), the computer stops.