Q-Code User Manual
Ver. 7.0 2021/11/30
190
X0=0xF2, plays no.M498 music file).
P8: PlayMS(X1:X0++),PB.3=1
; Play music file specified by register value and
simultaneously execute PB.3=1 (If X1=0x01,
X0=0xF2, plays no.M498 music file, X0
automatically increases by 1, X0=0xF3).
4.12.1.1 PlayM / PlayMS with Table
Ex.
[Table]
Tab:
{
[0x001, 0x003, 0x005, 0x007, 0x009],
[0x004, 0x005, 0x3F6, 0x008, 0x010],
[0x000, 0x001, 0x002, 0x003, 0x0F4] }
[Path]
TR1: TableL(Tab,1,1,R0), PlayM(R0), PB.3=1
; Store the specified address value by Table
to R0, execute PB.3=1 after playing the
music file specified by R0 (R0=0x5, plays
no.M5 music file).
TR2: TableL(Tab,1,1,X0), PlayM(X0), PB.3=1
; Store the specified address value by Table
to X0, execute PB.3=1 after playing the
music file specified by X0 (X0=0x05, plays
no.M5 music file).
TR4: TableL(Tab,1,1,R0), PlayMS(R0), PB.3=1
; Store the specified address value by Table
to R0, play the music file specified by R0
and execute PB.3=1 simultaneously
(R0=0x5, plays no.M5 music file).
TR5: TableL(Tab,1,1,X0), PlayMS(X0), PB.3=1
; Store the specified address value by Table
to X0, play music file specified by X0 and
simultaneously execute PB.3=1 (X0=0x05,
plays no.M5 music file).
Action
Command
Description
Labeled Music file
PlayM($M0)
Play Label “M0”.
Play by register value PlayM(X0)
Play X0 value to music file.
Numbers of repeated
playback
PlayM($M0)*n
Label "M0" will be played n times.
Call path defined in
Background while
playing Voice file.
PlayM($M0)&[BG1,BG2] Call path defined in Background1 and
Background2 while playing Label “M0”.
PlayM($M0)&[X,BG2]
Does not change the current status of BG1.