Properly pass window size to print_ls

This commit is contained in:
Juhani Krekelä 2023-03-22 21:17:02 +02:00
parent ee52411954
commit 5df22c3912
1 changed files with 7 additions and 4 deletions

View File

@ -251,13 +251,16 @@ show_file_window:
add ax, 0x001
xchg [es:GLOBAL_WINDOW_CHAIN_HEAD], ax
mov [windows + 1*window.size + window.next], ax
mov ax, cs
; Populate file window contents
mov ax, cs
mov es, ax
mov di, file_window + 80
mov cx, 3
mov dx, 40
mov di, file_window
add di, [windows + 1*window.size + window.width]
add di, [windows + 1*window.size + window.width]
mov cx, [windows + 1*window.size + window.height]
dec cx
mov dx, [windows + 1*window.size + window.width]
call print_ls
pop ax