- cmp byte [esi], 0 ; commands are equal, but\r
- je .new_cmd ; do not match in size..\r
-\r
- mov al, [esi]\r
- cmp al, [edi]\r
- jne .new_cmd\r
-\r
- inc esi\r
- inc edi\r
- inc ecx ; inc char counter\r
- jmp .l2\r
- ;----------------------;\r
- ; end of small loop ;\r
- ;----------------------;\r
-\r
- .new_cmd:\r
- inc ebp ; inc command counter\r
- mov edi, cmd_buffer ; remember to point to the right place.. ;-)\r
- .l3:\r
- inc esi\r
- cmp byte [esi], 0 ; loop until end of command\r
- jne .l3\r
-\r
- inc esi\r
- jmp .l1\r
- ;----------------------;\r
- ; end of big loop ;\r
- ;----------------------;\r
-\r
-\r
-\r
- ;--------------------------;\r
- ; done. command found ;\r
- ;--------------------------;\r
- .done:\r
- cmp ecx, 0 ; make sure it´s more\r
- je .d_quit ; then 0 chars..\r
-\r
- shl ebp, 2\r
- call dword [ebp+call_table]\r
-\r
- .d_quit:\r
- jmp .cont ; then go back to the shell\r
-\r
-\r
- ;--------------------------;\r
- ; command not found ;\r
- ;--------------------------;\r
- .no_valid_cmd:\r
-\r
- ; call search_current_directory_for_file.... :-)\r
-\r
- call no_such_cmd ; print error..\r
- jmp .cont ; then go back to the shell\r
-\r
- ;---------------------------------;\r
- ; make the prompt appear again ;\r
- ;---------------------------------;\r
- .cont:\r
- call new_line\r
- call new_line\r
- mov esi, prompt\r
- mov bl, 0x0E\r
- call print\r
- mov edi, cmd_buffer\r
- jmp shell\r
-\r
- ret\r
+ cmp byte [esi], 0 ; commands are equal, but\r
+ je .new_cmd ; do not match in size..\r
+\r
+ mov al, [esi]\r
+ cmp al, [edi]\r
+ jne .new_cmd\r
+\r
+ inc esi\r
+ inc edi\r
+ inc ecx ; inc char counter\r
+ jmp .l2\r
+ ;----------------------;\r
+ ; end of small loop ;\r
+ ;----------------------;\r
+\r
+ .new_cmd:\r
+ inc ebp ; inc command counter\r
+ mov edi, cmd_buffer ; remember to point to the right place.. ;-)\r
+ .l3:\r
+ inc esi\r
+ cmp byte [esi], 0 ; loop until end of command\r
+ jne .l3\r
+\r
+ inc esi\r
+ jmp .l1\r
+ ;----------------------;\r
+ ; end of big loop ;\r
+ ;----------------------;\r
+\r
+\r
+\r
+ ;--------------------------;\r
+ ; done. command found ;\r
+ ;--------------------------;\r
+ .done:\r
+ cmp ecx, 0 ; make sure it´s more\r
+ je .d_quit ; then 0 chars..\r
+\r
+ shl ebp, 2\r
+ call dword [ebp+call_table]\r
+\r
+ .d_quit:\r
+ jmp .cont ; then go back to the shell\r
+\r
+\r
+ ;--------------------------;\r
+ ; command not found ;\r
+ ;--------------------------;\r
+ .no_valid_cmd:\r
+\r
+ ; call search_current_directory_for_file.... :-)\r
+\r
+ call no_such_cmd ; print error..\r
+ jmp .cont ; then go back to the shell\r
+\r
+ ;---------------------------------;\r
+ ; make the prompt appear again ;\r
+ ;---------------------------------;\r
+ .cont:\r
+ call new_line\r
+ call new_line\r
+ mov esi, prompt\r
+ mov bl, 0x0E\r
+ call print\r
+ mov edi, cmd_buffer\r
+ jmp shell\r
+\r
+ ret
\ No newline at end of file