/* 1. Compiler: TC 2.0 2. Mode: Large 3. Project: Readfile.prj Readfile.c config_r.c ..\lib\8000l.lib ..\lib\tcpipl.lib 4. Explain: (1) This program is useing for reading the meat of the file. (2) You can select the file which download in the 8831. *** It's used config1.dat,config2.dat and config3.dat as an example here. *** Note: This program only valid for Large Model. This program will not work for Small Model. 5. Hordware: 8831 It's compiled by Tony ----------------------------------------------------------------------------------------- */ #include #include #include #include #include #include"..\LIB\8000.h" #include"..\LIB\vxcomm.h" /*--------------------------------------------------------------------------------------*/ void main(void) { int data; char c; int type; int ver; type=Is8000(); /*detect the current operation system*/ if(type) { ver=GetLibVersion(); Print("Hello 8831! (Flash memory is %d K)\n\r",type); Print("Library version is %d.%02d",ver>>8,ver&0xff); } else { Print("Hello PC!, this program is not run under I-8831."); return; } load_config(); }