Q-Code User Manual
Ver. 7.0 2021/11/30
107
[Path]
PowerOn:
KEY1, PlayS($L1), L4
; Play Sentence “L1” and “L4”
TR1: BG1
; Play BG1
TR2: BG2
; Play BG2
[Background1]
BG1: PlayS($L2), PlayS($L3), L4
; Play Sentence “L2”, Sentence “L3” and ”L4”
[Background2]
BG2: PlayS($L3), PlayS($L2), L4
; Play Sentence “L3”, Sentence “L2” and “L4”
3.9.26 Subroutine
For maintaining a neat program, user can consider directly composing certain
Q-Code
subroutines in
[Subroutine]
section to meet this demand instead of composing same programs portion in different
paragraphs. The
Q-Code
subroutines composed in
[Subroutine]
section can be directly used in
[Path]
,
[Background1]
and
[Background2]
sections.
Each subroutine consists of one path name, a “:” and one or more steps.
Note: For NY4 / NY5, the subroutine called in another subroutine will be expanded in the caller
subroutine.
Ex.
[Subroutine]
SUB1: PA=0xF, DELAY(0.5), PA=0x0, DELAY(0.5), PlayV(Ch0,$V1)
SUB2: PA=0xF, DELAY(0.5), PA=0x0, DELAY(0.5), PlayV(Ch1,$V1)
[Path]
PowerOn:
BG(BG1,BG2), SUB1
; Play Subroutine “SUB1”.
[Background1]
BG1:SUB2
; Play Subroutine “SUB2”.
[Background2]
BG2:SUB2
; PlaySubroutine “SUB2”.
3.9.27 QIO Custom
In
[QIO Custom]
section, user can decode QIO / Wave Mark. When using this feature, user must use
assembly language to compile QIO decoding program, the original decoding
program
will be replaced.
Note:
1. NY6 / NY7 / NY9T / NX1 does not support QIO Custom.
2. When using QIO Custom, it will apply to the entire project. User must control their own QIO