sh: Properly handle dir on an empty disk

Fixes issue #8.
This commit is contained in:
Ry 2023-01-30 14:15:51 -08:00
parent 01fd9a5eac
commit 2a8eb5b267

View File

@ -6,6 +6,8 @@ shell_dir_command:
mov r0, shell_dir_command_list_buffer mov r0, shell_dir_command_list_buffer
movz.8 r1, [shell_current_disk] movz.8 r1, [shell_current_disk]
call ryfs_get_file_list call ryfs_get_file_list
cmp r0, 0
ifz ret
mov r31, r0 mov r31, r0
mov r3, 0 mov r3, 0