diff --git a/bin/FSHa.8xp b/bin/FSHa.8xp index 1419b6e..6557199 100644 Binary files a/bin/FSHa.8xp and b/bin/FSHa.8xp differ diff --git a/includes/FshCmd.asm b/includes/FshCmd.asm index 84e9763..fc004d7 100644 --- a/includes/FshCmd.asm +++ b/includes/FshCmd.asm @@ -42,6 +42,15 @@ fshcmddecode: call z, bytecpy pop hl + push hl + push de + ld de, fshcmdCLS + call strcmp + ld hl, fshcmdCLSo + pop de + call z, bytecpy + pop hl + push hl push de ld de, fshcmdVARS @@ -51,11 +60,11 @@ fshcmddecode: call z, bytecpy pop hl - push hl + push hl push de - ld de, fshcmdCLS + ld de, fshcmdSLEEP call strcmp - ld hl, fshcmdCLSo + ld hl, fshcmdSLEEPo pop de call z, bytecpy pop hl @@ -87,13 +96,17 @@ fshcmdroute: call bytecmp jp z, fshcmdMOVEf + ld de, fshcmdCLSo + call bytecmp + jp z, fshcmdCLSf + ld de, fshcmdVARSo call bytecmp jp z, fshcmdVARSf - ld de, fshcmdCLSo + ld de, fshcmdSLEEPo call bytecmp - jp z, fshcmdCLSf + jp z, fshcmdSLEEPf push bc ;put ret location back on stack ret diff --git a/includes/FshCommands/FshCommands.inc b/includes/FshCommands/FshCommands.inc index 15c9306..8460529 100644 --- a/includes/FshCommands/FshCommands.inc +++ b/includes/FshCommands/FshCommands.inc @@ -4,3 +4,4 @@ #include "includes/FshCommands/MOVE.asm" #include "includes/FshCommands/CLS.asm" #include "includes/FshCommands/VARS.asm" +#include "includes/FshCommands/SLEEP.asm"