forked from offtopia/ponydos
Populate file window contents on open
This commit is contained in:
parent
bffa0c06a2
commit
ad03a04979
1 changed files with 8 additions and 8 deletions
16
shell.asm
16
shell.asm
|
@ -62,14 +62,6 @@ initialize:
|
||||||
|
|
||||||
call request_redraw
|
call request_redraw
|
||||||
|
|
||||||
; Temporary testing
|
|
||||||
mov ax, cs
|
|
||||||
mov es, ax
|
|
||||||
mov di, file_window + 80
|
|
||||||
mov cx, 3
|
|
||||||
mov dx, 40
|
|
||||||
call print_ls
|
|
||||||
|
|
||||||
pop ds
|
pop ds
|
||||||
retf
|
retf
|
||||||
|
|
||||||
|
@ -259,6 +251,14 @@ 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
|
||||||
|
mov es, ax
|
||||||
|
mov di, file_window + 80
|
||||||
|
mov cx, 3
|
||||||
|
mov dx, 40
|
||||||
|
call print_ls
|
||||||
|
|
||||||
pop ax
|
pop ax
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue