add SLEEP FshCommand

This commit is contained in:
Stephen Toth 2018-06-30 15:33:20 -04:00
parent 7677669259
commit ac65a653d3
3 changed files with 19 additions and 5 deletions

Binary file not shown.

View File

@ -42,6 +42,15 @@ fshcmddecode:
call z, bytecpy call z, bytecpy
pop hl pop hl
push hl
push de
ld de, fshcmdCLS
call strcmp
ld hl, fshcmdCLSo
pop de
call z, bytecpy
pop hl
push hl push hl
push de push de
ld de, fshcmdVARS ld de, fshcmdVARS
@ -51,11 +60,11 @@ fshcmddecode:
call z, bytecpy call z, bytecpy
pop hl pop hl
push hl push hl
push de push de
ld de, fshcmdCLS ld de, fshcmdSLEEP
call strcmp call strcmp
ld hl, fshcmdCLSo ld hl, fshcmdSLEEPo
pop de pop de
call z, bytecpy call z, bytecpy
pop hl pop hl
@ -87,13 +96,17 @@ fshcmdroute:
call bytecmp call bytecmp
jp z, fshcmdMOVEf jp z, fshcmdMOVEf
ld de, fshcmdCLSo
call bytecmp
jp z, fshcmdCLSf
ld de, fshcmdVARSo ld de, fshcmdVARSo
call bytecmp call bytecmp
jp z, fshcmdVARSf jp z, fshcmdVARSf
ld de, fshcmdCLSo ld de, fshcmdSLEEPo
call bytecmp call bytecmp
jp z, fshcmdCLSf jp z, fshcmdSLEEPf
push bc ;put ret location back on stack push bc ;put ret location back on stack
ret ret

View File

@ -4,3 +4,4 @@
#include "includes/FshCommands/MOVE.asm" #include "includes/FshCommands/MOVE.asm"
#include "includes/FshCommands/CLS.asm" #include "includes/FshCommands/CLS.asm"
#include "includes/FshCommands/VARS.asm" #include "includes/FshCommands/VARS.asm"
#include "includes/FshCommands/SLEEP.asm"