So here I've extended the code, so you can print a whole screen from machine code. As we use the whole screen, we need to disable the message area occupying the 2 last lines on the screen. Then we print 3 messages of 8 lines, wait for a key press, and enable the message area again.
Download the compiled program here.