Day 18 and I played with the looping / comparison in Z80 machine code on the ZX Spectrum. I did the exercise of popping 50 numbers on the stack (reduced to 3 as I didn't want to wait while single-stepping though 50 numbers). Here's the results of my assembly code:
Pretty fun stuff.