WRn
Detailed Description
The contents of the DATA RAM status character whose number from 0 to 3 is specified by n, associated with the DATA RAM register specified by tbe last SRC instruction, are replaced by the contents of the accumulator.
The carry bit and the accumulator are not affected.
The DATA RAM status character is encoded in the opcode as shown below:
Example program
The example program will write the value 2 into status character 1 of DATA RAM register 0 of chip 0 of the currently selected DATA RAM bank.
/ Example program
FIM 0P 0
SRC 0P
LDM 2
WR1