+ jne _repl_cmd_appenddown_end
+
+ ; make room first
+ push DWORD [buffer]
+ push DWORD [buffer_lines]
+ mov eax, DWORD [cur_line]
+ add eax, 1
+ push eax
+ call shiftRight
+ mov [buffer], eax
+
+ ; input text
+ push 0
+ call readLine
+ mov esi, eax
+
+ ; insert new string
+ mov eax, [cur_line]
+ add eax, 1
+ mov ecx, 4
+ mul ecx
+ add eax, DWORD [buffer]
+ mov [eax], esi
+
+ add DWORD [buffer_lines], 1
+
+ jmp _repl_continue
+ _repl_cmd_appenddown_end:
+
+ ; O oppens text before line =-=-=-=-=-=-=-=
+ mov eax, DWORD [ebp-CMDSTR]
+ cmp BYTE [eax], 'O'