■
Format of data buffer (FIFO buffer)
Buffer size
Stored data amount
Reading pointer
Writing pointer
・・・Size of the data buffer area
・・・Stored data amount (by operation unit)
・・・Relative number from [D]+4
・・・Relative number from [D]+4
Data buffer area
* The data buffer area is not cleared.
Default: [n] (buffer size)
Default: H 0000
Default: H 0000
Default: H 0000
[D]
■
Format of data buffer (LIFO buffer)
Buffer size
Stored data amount
Fixed to 0
LIFO pointer
・・・Size of the data buffer area
・・・Stored data amount (by operation unit)
・・・Fixed to 0
・・・Relative number from [D]+4
Data buffer area
* The data buffer area is not cleared.
Default: [n] (buffer size)
Default: H 0000
Default: H 0000
Default: H 0000
[S]
[S]+1
[S]+2
[S]+3
・・・・・・・・
■
Processing
1. [n] (buffer size) is specified in [D] (buffer start).
2. The range from [D]+1 (stored data amount) to [D]+3 (writing pointer) is cleared to zero.
K 8
K 128
K 0
K 4
K 6
K 1
K 3
K 5
K 7
K 0
K 2
K 4
K 6
DT0
DT1
DT2
DT3
DT4
DT5
DT6
DT7
K 0
K 0
K 5
K 7
DT0
DT1
DT2
DT3
DT4
DT5
DT6
DT7
DT8 K 8DT8
(Buffer size)
(Stored data amount)
(Writing pointer)
(Reading pointer)
[n]…K 128(U 128) [D]…DT0
Example) Operation unit: 16 bits (US, SS)
[i]…US,SS
■
Related instructions
● FIFR (Read data from the 16- or 32-bit data buffer (First-In-First-Out))
● BUFW (Write data in the 16- or 32-bit data buffer)
● LIFR (Read data from the 16- or 32-bit data buffer (Last-In-First-Out))
■
Flag operations
Name Description
SR7
SR8
(ER)
To be set in the case of out-of-range in indirect access (index modification).
To be set when [n] (buffer size) is out of the available range.
8.17 DEFBUF (Buffer Definition)
WUME-FP7CPUPGR-12 8-35