A-4. Example LC Test
2/99 A-5 U3-1021
Westinghouse Proprietary Class 2C
A-4. Example LC Test
This example program can be used to test the following LC functions:
• Store a value (integer, real, or real with status) from a specified OIOB access
register.
• Display a value (integer, real, or real with status) from a specified OIOB access
register.
• Display the LC status register value.
• Set the LC status LEDs (to a specified hexadecimal value).
To use this program, the external personal computer must be connected and
RLCEXTPC.EXE must be running, as described in Section 3.
#include<dos.h>
#include<stdio.h>
#include<lc.h>
#include<conio.h>
main()
{
int data0,count,cmd,reg,status;
float data1
format2 data2;
char *cls[3];
*cls = "cls";
cmd = 10;
data1 = 0;
while(cmd != 0)
{