Q-Code User Manual
Ver. 7.0 2021/11/30
110
mvam
pf_state
; Save QIO data[7:4] to PF state register.
mvat
pf
; Output QIO data[7:4] to PF.
endif
jmp
@@QIO_EXIT
; End of QIO output.
;-------------------------------------------------------------------------------
; LOAD WAVE MARK
;-------------------------------------------------------------------------------
@@check_wavemark:
rbro
1
; Read Wave Mark and QIO Table 1.
mpg
wavemark1_page
; Set RAM page of Wave Mark register.
mvam
wavemark1
; Save WaveMark value to Wave Mark register.
@@QIO_EXIT:
SAVE_QIO_ADDR
; Save QIO Table address.
}
; End of QIO process.
3.9.28 Path
[Path]
section lists the execution flows in the
Q-Code
program sheet, each execution flow is named as
a “PATH”. There are 2 kinds of path, one is the Foreground Path to play voice or melody mostly, and
the other is the Background Path to cooperate with the Foreground Path for background output.
Each Foreground Path consists of the path name and Steps. The path name is a symbol which leads a
line prior to a colon “:”. The paths can be linked to some trigger event of input-pins by
[Input State]
and
[Output State]
sections or direct called by another path.
Note: While system executing each in Path section, if there are no PlayV, PlayS, Delay, Stop and
StopV command to stop current playing, after executing other commands, program will
go back to play or delay command address to execute next command. In Q-Code system,
it’s not necessary to add extra path for return to next command.
Ex.
[Input State]
KEY1: TR1R
TR2R
[Path]
PowerOn:
KEY1
TR1R: PlayV(Ch1, $V0), Delay(1)
; When PlayV of TR be executed, then will delay for 1 second.
TR2R: R0=5
; Execute R0=5. If system is executing PlayV or Delay command, it will return after R0=5 is