summaryrefslogtreecommitdiff
path: root/parsecmd.inc
diff options
context:
space:
mode:
Diffstat (limited to 'parsecmd.inc')
-rw-r--r--parsecmd.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/parsecmd.inc b/parsecmd.inc
index f10e4f59..5639db93 100644
--- a/parsecmd.inc
+++ b/parsecmd.inc
@@ -57,7 +57,7 @@ getcommand:
lodsd
cmp ebx,eax
je .found_keywd
- lodsw ; Skip entrypoint
+ lodsd ; Skip entrypoint/argument
loop .table_search
; Otherwise unrecognized keyword
@@ -71,7 +71,8 @@ getcommand:
call cwritestr
jmp short .find
-.found_keywd: call near [si]
+.found_keywd: lodsw ; Load argument into ax
+ call near [si]
clc
ret