In fact, later I found I already posted a slightly simpler approach for a decoder for the same device:
I guess a 7:16 PM post is better than a 0:17 AM post.