2 emitBeforeScroll defb 1
15 ld (emitBeforeScroll),a
20 ; should preserve registers (except A and F)
38 ; check if we need to wrap
41 ; need to wrap (and maybe scroll)
85 ld l,0 ; patched above
100 and #00 ; patched above
106 and #00 ; patched above
118 ; this actually moves cursor to (64,n), if it is not there
119 ; otherwise, moves down a line, and scroll
124 ; put cursor to (64,n)
129 ; must do real newline here
143 ld a,(emitBeforeScroll)
146 ; show scroll prompt, wait a key
188 ld (emitBeforeScroll),a
193 .scrollmsg: defx "<MORE>"