Q-Code User Manual
Ver. 7.0 2021/11/30
266
4.31.10 Stop
This command is to stop all currently executing steps in foreground and backgrounds including PlayV,
PlayM, Delay, PlayA, PlayPWM, PWMOut and all background actions.
Note: For NY5, executing Stop command also stops interrupt.
Ex.
[Path]
PowerOn
: PlayV(ch0,$V0) & [BG1, BG2]
TR1: Stop
; Stop all playbacks and delays.
[Background1]
BG1: …..
[Background2]
BG2: …..
4.31.11 Pause(n)
This command is to pause the designated steps in foreground, background1 and background2
including PlayV, PlayA, PlayM, Delay, PlayPWM / PlayPWMS and PWMOut / PWMOutS.
n:
0 = foreground, 1 = background1, 2 = background2 and 3=background3. If n is not designated, the
system will pause all execution.
Ex.
[Path]
TR1: Pause(1)
; Pause all steps in background1.
[Background1]
BG1: PlayV(Ch0, $V0), Delay(5)
; BG1 PlayV(Ch0, $V0) then delay for 5s.
4.31.12 Resume(n)
This command is to resume the designated steps in foreground, background1 and background2
including PlayV, PlayA, PlayM, Delay, PlayPWM / PlayPWMS and PWMOut / PWMOutS.
n:
0 = foreground, 1 = background1, 2 = background2 and 3=background3. If n is not designated, the
system will resume all execution.
Ex.
[Path]
TR1: Pause(1)
; Pause all steps in background1.
TR2: Resume(1)
; Resume all steps in background1.
[Background1]