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
|
add ax, 0x001
|
||||||
xchg [es:GLOBAL_WINDOW_CHAIN_HEAD], ax
|
xchg [es:GLOBAL_WINDOW_CHAIN_HEAD], ax
|
||||||
mov [windows + 1*window.size + window.next], ax
|
mov [windows + 1*window.size + window.next], ax
|
||||||
mov ax, cs
|
|
||||||
|
|
||||||
; Populate file window contents
|
; Populate file window contents
|
||||||
|
mov ax, cs
|
||||||
mov es, ax
|
mov es, ax
|
||||||
mov di, file_window + 80
|
mov di, file_window
|
||||||
mov cx, 3
|
add di, [windows + 1*window.size + window.width]
|
||||||
mov dx, 40
|
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
|
call print_ls
|
||||||
|
|
||||||
pop ax
|
pop ax
|
||||||
|
|
Loading…
Reference in New Issue