From de6092bb9e0af0be5f557db5b86e58f373c42a76 Mon Sep 17 00:00:00 2001 From: Stephen Toth Date: Sat, 30 Jun 2018 15:37:11 -0400 Subject: [PATCH] idk --- includes/FshCommands/SLEEP.asm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 includes/FshCommands/SLEEP.asm diff --git a/includes/FshCommands/SLEEP.asm b/includes/FshCommands/SLEEP.asm new file mode 100644 index 0000000..074d6eb --- /dev/null +++ b/includes/FshCommands/SLEEP.asm @@ -0,0 +1,14 @@ +fshcmdSLEEP: .db "SLEEP", 0 +fshcmdSLEEPo: .db $16 +fshcmdSLEEPu: .db "Puts the calculator into sleep mode (APD)", 0 +fshcmdSLEEPf: + di + call _EnableAPD + ld a,1 + ld hl,apdSubTimer + ld (hl),a + inc hl + ld (hl),a + set apdRunning,(iy+apdFlags) + ei + jp Fin