;;Commanddecode ;;Decodes all commands. ;;Inputs: ;; HL: Cmd String mem loc ;; DE: Op code mem loc ;;Output: ;; Sets (DE) with command op code commanddecode: ;add more call fshcmddecode ret ; commandfill ;; fills command mem with byte a commandfill: push hl push bc push de ld b, 0 ld de, 0 ld c, a ld hl, FshCmd commandfillLoop: ld (hl), c inc hl inc b inc de ld a, b cp FshCmdSize jr c, commandfillLoop pop de pop bc pop hl ret #include "includes/FshCmd.asm"