fsh-shell/includes/Command.asm

32 lines
549 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
call cryptocmddecode
;Extention Point
ret
;;commandroute
;;Routes all commamds.
;;Inputs:
;; HL: Op code mem loc
commandroute:
call fshcmdroute
call cryptocmdroute
;Extention Point
ld hl, ErrCmdNotFoundo
ld de, FshCmdErrCode
call bytecpy
call ErrSet
jp Err
#include "includes/FshCommands/FshCommand.asm"
#include "includes/CryptoCommands/CryptoCommand.asm"