WMP
Detailed Description
The contents of the accumulator are written to the output port associated with the DATA RAM chip selected by the last SRC instruction. The data is available on the output pins until a new WMP is executed on the same RAM chip. The LSB bit of the accumultor appears on O0, (Pin 16), of the 4002.
The carry bit and the accumulator are unchanged.
The opcode for this instruction does not contain any additional data:
Example Program
The example program will write the value 6 to the output port associated with the DATA RAM chip 2 of the currently selected DATA RAM bank.
/ Example program
FIM 3P 64
SRC 3P
LDM 6
WMP