Hitachi NJI-350B Video Game Controller User Manual


 
Chapter 5 Instruction Specifications
5-57
Item number Arithmetic instructions-12 Name Logical OR
Ladder format Condition code
Processing time (µs)
Remark
R7F4 R7F3 R7F2 R7F1 R7F0
Average Maximum
d = s1 OR s2 DER ERR SD V C 62
Upper case: B
zzzzz Middle case: W
Instruction format Number of steps
33
Lower case: DW
Condition Steps
d = s1 OR s2 Bit, word 4 86
Double word 6
Bit Word Double word
Usable I/O
XY
R,
M
TD, SS,
CU, CT WX WY
WR,
WM TC DX DY
DR,
DM
Constant
Other
d Substitution destination {{ {{{ {{
s1 Comparand {{{ {{{{{{{{
s2 Relational number
{{{ {{{{{{{{
Function
Obtains OR of s1 and s2, and substitutes the result into d.
s1 s2 d
000
011
101
111
Notes
The combinations of d, s1 and s2 are as follows:
ds1s2
Bit Bit Bit
Word Word Word
Double word Double word Double word
Program example
WR0102 = WR0100 OR WR0101
X00110 DIF110 LD X00110
AND DIF110
[
WR0102=WR0100 OR WR0101
]
Program description
At the leading edge of X00110, the OR of WR0100 and WR0101 is set in WR0102.
WR0100 = H1234
WR0101 = H5678
WR0102 = H567C
WR0100 = 0001001000110100
WR0101 = 0101011001111000
WR0102 = 0101011001111100
When
d = s1 OR s2