From 3eff04b8a24ea6e880e1be823b4e1f0b2cf11eba Mon Sep 17 00:00:00 2001 From: Ry Date: Mon, 26 Dec 2022 18:26:27 -0800 Subject: [PATCH] shell: Update `disk` command --- kernel/shell/commands/disk.asm | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/kernel/shell/commands/disk.asm b/kernel/shell/commands/disk.asm index c717156..d26ccf7 100644 --- a/kernel/shell/commands/disk.asm +++ b/kernel/shell/commands/disk.asm @@ -14,11 +14,10 @@ shell_disk_command: ifgt jmp shell_disk_command_out_of_range ; OR it with the IO port to get the current insert state of a disk - ; if no disk is inserted then prompt the user to insert a disk or r0, 0x80001000 in r1, r0 cmp r1, 0 - ifz jmp shell_disk_command_insert_disk + ifz ret ; set the current disk ID mov.8 [shell_current_disk], r0 @@ -31,9 +30,4 @@ shell_disk_command_out_of_range: ret -shell_disk_command_insert_disk: - out r0, 0 - - ret - shell_disk_command_out_of_range_string: data.str "invalid disk ID" data.8 10 data.8 0