Io And Ram Instructions

This section describes instructions which access DATA RAM characters or perform input or output operations. One instruction, WPM, allows the programmer to read or write 8-bit program RAM locations. These instructions use addresses selected by the DCL and SRC instructions.

Instructions in this class occupy one byte as follows:

../../_images/io-ram-diag.png

Code

Description

WRM

Write accumulator to RAM.

WMP

Write accumulator to RAM output port

WRR

Write accumulator to ROM output port.

WPM

Write accumulator to Program RAM.

WRn

Write accumulator to RAM status char&cter n (n = 0, 1, 2 or 3).

RDM

Load accumulator from RAM.

RDR

Load accumulator from ROM input port.

RDn

Load accumulator from RAM status character n (n = 0, 1, 2 or 3) .

ADM

Add RAM data plus carry to accumulator.

SBM

Subtract RAM data from accumulator with borrow.