
Chapter 5
5.3.13 DJZA – Decrement R and Place in Acc (Skip if Result is Zero)
Syntax DJZA R
Encoding
0 0101
10rr rrrr
Operation
R-1
→
A, skip next instruction if the result is zero.
Status Affected
None
Description
Decrease the contentsof data memory R by 1. The result is placed in the
accumulator. If the result is zero, the next instruction, which is already
fetched, will be discarded.
Example
The following codes illustrate how to make a 16-iteration loop
MOV A, @0x10
;
Acc = 0x10
LOOP:
MOV 0x10, A
;
R10 = Acc
…
DJZA 0x10
;
Acc = R10 – 1
JMP LOOP
;
if result!=0, go to LOOP
…
5.3.14 GET – Get n-Bit Width Data from the Voice ROM
and Store in Acc
Syntax GET n
Encoding
0 0000
0010
0nnn
Operation
n-bit width data
→
A
Status Affected
None
Description
Get n-bit width data from the data stream for speech Channel 1 or 2 and
store in the A register ( n=1…8). The speech channel is determined by
R9. The contents of data memory R are complemented. The result is
placed in the accumulator.
Example
MOV A, @0
;
select speech channel 1
MOV 0x09, A
MOV A, @0
;
set voice ROM data start address to 0
IOW 0x6
IOW 0x7
IOW 0x8
GET 5
;
get 5 bit data from voice ROM
MOV 0x10, A
;
store in R10
56
•
Instruction Set
EM60000Series User’s Manual
Содержание EM60000 series
Страница 8: ...Contents viii Contents EM60000 Series User s Manual ...
Страница 24: ...Chapter 2 16 Architecture EM60000 Series User s Manual ...
Страница 54: ...Chapter 4 46 Special Function Control EM60000Series User s Manual ...
Страница 80: ...Chapter 5 72 Instruction Set EM60000Series User s Manual ...