Properly pass window size to print_ls
This commit is contained in:
parent
ee52411954
commit
5df22c3912
11
shell.asm
11
shell.asm
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue