?? 4.4.lst
字號:
C51 COMPILER V7.09 4_4 08/25/2005 08:02:55 PAGE 1
C51 COMPILER V7.09, COMPILATION OF MODULE 4_4
OBJECT MODULE PLACED IN 4.4.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE 4.4.c BROWSE DEBUG OBJECTEXTEND
line level source
1 #define uchar unsigned char
2 #define uint unsigned int
3 #include <reg52.h>
4 #include <stdio.h>
5 #include <absacc.h>
6 #include <math.h>
7 #include <string.h>
8 #include <ctype.h>
9 #include <stdlib.h>
10
11 #define P128870 XBYTE[0xa000]
12 #define P128871 XBYTE[0xa001]
13 #define P128872 XBYTE[0xa002]
14 #define P128873 XBYTE[0xa003]
15 #define P128874 XBYTE[0xa004]
16 #define P128875 XBYTE[0xa005]
17 #define P128876 XBYTE[0xa006]
18 #define P128877 XBYTE[0xa007]
19 #define P128878 XBYTE[0xa008]
20 #define P128879 XBYTE[0xa009]
21 #define P12887a XBYTE[0xa00a]
22 #define P12887b XBYTE[0xa00b]
23 #define P12887c XBYTE[0xa00c]
24 #define P12887d XBYTE[0xa00d]
25 #define P12887e XBYTE[0xa00e]
26 #define P12887f XBYTE[0xa00f]
27
28 void setup12887(uchar *p);
29 void read12887(uchar *p);
30 void start12887(void);
31
32 void setup12887(uchar *p) //設置系統時間
33 {
34 1 uchar i;
35 1 i=P12887d;
36 1 P12887a=0x70; P12887b=0xa2; P128870=*p++; P128871=0xff; P128872=*p++;
37 1 P128873=0xff; P128874=*p++; P128875=0xff; P128876=*p++; P128877=*p++;
38 1 P128878=*p++; P128879=*p++; P12887b=0x22; P12887a=0x20;
39 1 i=P12887c;
40 1 }
41 void read12887(uchar *p) //讀取系統時間
42 {
43 1 uchar a;
44 1 do{ a=P12887a; } while((a&0x80)==0x80);
45 1 *p++=P128870; *p++=P128872; *p++=P128874; *p++=P128876;
46 1 *p++=P128877; *p++=P128878; *p++=P128879;
47 1 }
48 void start12887(void) //啟動時鐘
49 {
50 1 uchar i;
51 1 i=P12887d;
52 1 P12887a=0x70; P12887b=0xa2; P128871=0xff; P128873=0xff; P128875=0xff;
53 1 P12887b=0x22; P12887a=0x20;
54 1 i=P12887c;
55 1 }
C51 COMPILER V7.09 4_4 08/25/2005 08:02:55 PAGE 2
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 400 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- 6
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -