Q-Code User Manual
Ver. 7.0 2021/11/30
316
Q-Code
Function
Description
Number of
Occupied RAM
Each Direct port will occupy 3 RAM.
When Debounce is more than 60ms, it will occupy 2 RAMs.
System will occupy 2 RAMs.
Random
Additional 1 RAM will be occupied if max Random number
is over 16.
3~4
Repeat
Repeat function is used in foreground.
1
Repeat function is used in background1.
1
Repeat function is used in background2.
1
Subroutine
4 RAMs will be occupied when first layer is called, and 4
more RAMs will be occupied if the second layer is called.
4 / 8
PauseD
When PauseD function is used, 3 RAMs will be used in
each layer.
3*n
PlayVS
PlayVS function is used.
1
QIO
When QIO function is used, 1 RAM will be used and
system will occupy 5 RAMs.
1*n+5
Wait
When WaitVN function is used, 1 RAM will be used and
system will occupy 1 RAM.
1+1
When WaitDN function is used, 1 RAM will be used and
system will occupy 1 RAM.
1+1
When WaitAN function is used, 2 RAMs will be used and
system will occupy 1 RAM.
2+1
Wave Mark
1 RAM will be occupied when Wave Mark is used, and
Additional 1 RAM will be occupied if Wave Mark State
number is more then 15.
2~3
5.6.2 Command for NY5 RAM Resources
NY5:
There are four pages of SRAM, Page0, Page1, Page2 and Page3 in NY5. There are 56 memory
units for each page. Totally 224 registers are available, which 188 memory
units are available for users and the others are reserved by system.
Note: System will randomly configure in accordance with the function.
Q-Code
Function
Description
Number of
occupied RAM
Reserved by
system
Program flow control (NY5A / NY5B / NY5C*20 I/O; NY5C*24
I/O).
36 / 36 / 36 / 38