mov al,[CursorCol]
inc ax
cmp al,[VidCols]
- ja msg_newline
+ ja msg_line_wrap ; Screen wraparound
mov [CursorCol],al
msg_gotoxy: mov bh,[TextPage]
mov si,crlf_msg
call write_serial_str
pop si
+msg_line_wrap: ; Screen wraparound
mov byte [CursorCol],0
mov al,[CursorRow]
inc ax
mov al,[CursorCol]
inc ax
cmp al,[VidCols]
- ja msg_newline
+ ja msg_line_wrap ; Screen wraparound
mov [CursorCol],al
msg_gotoxy: mov bh,[TextPage]
mov si,crlf_msg
call write_serial_str
pop si
+msg_line_wrap: ; Screen wraparound
mov byte [CursorCol],0
mov al,[CursorRow]
inc ax