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