Hitachi NJI-350B Video Game Controller User Manual


 
Chapter 5 Instruction Specifications
5-46
Program example
X00000 DIF0
X00001 DIF1
X00002 DIF2
X00003 DIF3
WR0000
WR0000(WM000)=WX0000
WR0000
=WX0000
WR0000(WM000)=WR0000(WM001)
=WR0000(WM001)
Array variables are used at the
substitution destination
Array variables are used at the
substitution source
Array variables are used at both
substitution destination and source
1]
2]
3]
4]
Program description
1] The value of WX0000 is substituted into WR0000 at the leading edge of input X00000.
2] The value of WX0000 is substituted into the WR number designated by WR0000 + WM000 at the leading edge of input
X00001.
1) When WM000 = H0010, it holds the same meaning as WR0010 = WX0000.
3] The word number of the I/O advanced by the amount designated by WR0000 + WM001 due to the I/O assignment is
substituted into WR0000 at the leading edge of input X00002.
1) When WM001 = H0010, it hods the same meaning as WR0000 = WR0010.
4] The I/O value designated by WR0000 + WM001 at the leading edge of input X00003 is substituted into the I/O of the value
designated by WR0000 + WM000.
Example) When WM000 = H0010 and WM001 = H0015, it holds the same meaning as WR0010 = WR0015.
d = s