......
speech 1, ,1
......
end
The parameter VoiceDown could also be left empty. If it is non-empty, no
matter what symbol it has, the voice down mode is enabled. Otherwise, if
it is left empty, the voice down mode is disabled. Enabling the voice down
mode will cause the register DAH and DAL to be set to zero and thus reduce
power consumption after the sound track is performed. For example,
.....
speech 0,,
; After track 0 is played, the system will not
......
;
go into voice down mode
speech 1,,1
; After track 1 is played, the system goes into
......
;
voice down mode.
•
The standby flag
The standby flag is a one-bit, read only flag which indicates the playing
status. It will be set if the decompression algorithm is on standby and is
waiting for some tracks to be played. For example to demonstrate usage
of this flag, if there are five tracks recorded in the voice ROM and all have
to be played one by one, the following short program can be used.
Z
equ
[0AH].2
#include voice.inc
code .section at 0 ’code’
org
0
jmp
begin
org
8
jmp
AdpcmISR
begin:
set
[22H]
clr
TrackNo
NextTrack:
Speech , 12H, 1
waiting:
snz
standby
jmp
waiting
inc
TrackNo
mov
a, TrackNo
xor
a, 5
snz
Z
jmp
NextTrack
jmp
$
Important
The standby flag is READ ONLY. Changing it may cause unpredictable
results.
Chapter 13
µ
C VROM Editor (HT-VDS827)
153
Содержание HT-IDE
Страница 11: ...P a r t I Integrated Development Environment Part I Integrated Development Environment 1 ...
Страница 12: ...HT IDE User s Guide 2 ...
Страница 20: ...Fig 1 6 Fig 1 7 HT IDE User s Guide 10 ...
Страница 24: ...HT IDE User s Guide 14 ...
Страница 70: ...HT IDE User s Guide 60 ...
Страница 76: ...HT IDE User s Guide 66 ...
Страница 92: ...HT IDE User s Guide 82 ...
Страница 93: ...P a r t I I Development Language and Tools Part II Development Language and Tools 83 ...
Страница 94: ...HT IDE User s Guide 84 ...
Страница 148: ...HT IDE User s Guide 138 ...
Страница 150: ...Fig 12 1 Fig 12 2 HT IDE User s Guide 140 ...
Страница 154: ...HT IDE User s Guide 144 ...
Страница 192: ...HT IDE User s Guide 182 ...
Страница 194: ...HT IDE User s Guide 184 ...
Страница 218: ...HT IDE User s Guide 208 ...
Страница 235: ...P a r t V Appendix Part V Appendix 225 ...
Страница 236: ...HT IDE User s Guide 226 ...
Страница 250: ...HT IDE User s Guide 240 ...