fsh-shell/includes/Command.asm

29 lines
453 B
NASM

;;Commanddecode
;;Decodes all commands.
;;Inputs:
;; HL: Cmd String mem loc
;; DE: Op code mem loc
;;Output:
;; Sets (DE) with command op code
commanddecode:
call fshcmddecode
;Extention Point
ret
;;commandroute
;;Routes all commamds.
;;Inputs:
;; HL: Op code mem loc
commandroute:
call fshcmdroute
;Extention Point
ld hl, ErrCmdNotFoundo
ld de, FshCmdErrCode
call bytecpy
call ErrSet
jp Err
#include "includes/FshCommands/FshCommand.asm"