$LCD
Action

Instruct the compiler to generate code for 8-bit LCD displays attached to the data bus.

Syntax

$LCD = [&H]address

Remarks

address The address where must be written to, to enable the LCD display.
The db0-db7 lines of the LCD must be connected to the data lines D0-D7.
The RS line of the LCD must be connected to the address line A0.

On systems with external RAM/ROM it makes more sense to attach the LCD to the data bus. With an address decoder you can select the LCD display.

Example


$LCD = &HA000 'writing to this address will make the line of the LCD high.
LCD "Hello world"