If you're thinking that this will fit in one screen, then you're right. At least the display part. What's that @SET label doing there? That's the editor. I usually use the #DOWN DPAD to activate.
Here is a simpler, cleaner version of @SET. By changing the loop to REPEAT-UNTIL, and switching things around a bit, I have a more streamlined code. I should've done this in the first place, of course.