From 2584361a8b0ed40b7a47ba60ee39ca14b135440c Mon Sep 17 00:00:00 2001 From: Plaza521 Date: Mon, 19 Jun 2023 09:36:24 +0300 Subject: [PATCH] Add folders support --- funcs.asm | 16 ++++++++++++++++ functable.asm | 1 + 2 files changed, 17 insertions(+) diff --git a/funcs.asm b/funcs.asm index caf8f9e..7e1973d 100644 --- a/funcs.asm +++ b/funcs.asm @@ -772,6 +772,22 @@ write_table: popa ret +; Change table +; SI - table in FS table (0 - return to previous table) +change_table: + pusha + mov ah, 02h + mov al, 4 + mov dl, [BOOT_DRIVE] + mov ch, [si] + mov dh, [si+1] + mov cl, [si+2] + mov bx, 0x8000 + int 13h + popa + ret + + wait_key: mov ah, 11h diff --git a/functable.asm b/functable.asm index f64aa1e..f4d9ef3 100644 --- a/functable.asm +++ b/functable.asm @@ -34,6 +34,7 @@ functable: dw get_cursor_pos dw set_cursor_pos dw read_table + dw change_table dw 0 times 1024 - ($-$$) db 0