Populate file window contents on open

This commit is contained in:
Juhani Krekelä 2023-03-22 20:57:19 +02:00
parent bffa0c06a2
commit ad03a04979
1 changed files with 8 additions and 8 deletions

View File

@ -62,14 +62,6 @@ initialize:
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
retf
@ -259,6 +251,14 @@ 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 es, ax
mov di, file_window + 80
mov cx, 3
mov dx, 40
call print_ls
pop ax