Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.naic.edu/~phil/hardware/vertex/sharemegsvertex/floppy_bckup/lcuv2_2/LCU_ver2.2/BC630INI.LST
Дата изменения: Mon Mar 5 21:23:32 2001
Дата индексирования: Thu Jan 15 11:52:05 2009
Кодировка:

Поисковые слова: europa


CP581 PAGE 1
bc630ini 03-05-:1
14:23:32

Line# Source Line Microsoft C Compiler Version 6.00A

1 #include
2 #include
3 #include
4 #include
5 #include "prog.h"
6 #include "extern.c"
7 void bc630ini(void)
8 {
9 int ii,rdyflg;
10 unsigned int timer=30000;
11 outp(0x208,0x10);
12 /* select auto_detect of incoming IRIG A, */
13 /* IRIG B, NASA 36, 2137 modulated and */
14 /* DC level shift time codes */
15 /* init mode = normal / modulated time code select */
16 /* Note: for autodetect mod/DC bit must be zero */
17 outp(0x209,0x0);
18 /* disable event capture, external flywheel */
19 /* filter, heartbeats and select no interrupt sources */
20 outp(0x20e,0x90);
21 /* initialize 630AT to above values */
22 /* **** INITIALIZE COMMAND MUST FOLLOW ALL *** */
23 /* **** UPDATES TO TIMECODE AND MASKS REGISTER *** */
24
25
26
27 do
28 {
29 for(ii=1000;ii!=0;ii--);
30 rdyflg = inp(0x20e);
31 }
32 while((rdyflg != 0x10) && --timer);
33
34 if(!timer) rtc_error = 1;
35 }


bc630ini Local Symbols

Name Class Type Size Offset Register

rdyflg. . . . . . . . . . auto -0006
ii. . . . . . . . . . . . auto -0004
timer . . . . . . . . . . auto -0002


Global Symbols

Name Class Type Size Offset

bc630ini. . . . . . . . . global far function *** 0000
rtc_error . . . . . . . . extern int 2 ***

Code size = 0050 (80)
Data size = 0002 (2)
Bss size = 0000 (0)


CP581 PAGE 2
bc630ini 03-05-:1
14:23:32

Microsoft C Compiler Version 6.00A


No errors detected