-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
; del command | ||
|
||
shell_del_command_string: data.strz "del" | ||
|
||
shell_del_command: | ||
call shell_parse_arguments | ||
|
||
mov r3, r0 | ||
|
||
call get_current_disk_id | ||
mov r1, r0 | ||
mov r0, r3 | ||
mov r2, shell_type_command_file_struct | ||
call open | ||
cmp r0, 0 | ||
ifz jmp shell_type_command_file_not_found | ||
|
||
mov r0, shell_type_command_file_struct | ||
call delete | ||
|
||
ret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters