Generate input for this hardware
Ruby, 30 bytes

Simple and clean. Outputs a substring of the larger with the right offset because it seemed cheaper than any method I could think of that calculated it properly.



-&gt;o{"FEDCBA9801234567"[o+4,8]}


Try it online!