From ad03a04979ab7dc08019f513984fd028d747b3cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Wed, 22 Mar 2023 20:57:19 +0200 Subject: [PATCH] Populate file window contents on open --- shell.asm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/shell.asm b/shell.asm index c1dbc69..68822a8 100644 --- a/shell.asm +++ b/shell.asm @@ -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