📄 inputchar.lst
字号:
C51 COMPILER V8.05a INPUTCHAR 08/08/2007 08:55:16 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE INPUTCHAR
OBJECT MODULE PLACED IN InputChar.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE sources\InputChar.c BROWSE INCDIR(.\include;.\include) DEBUG OBJECTEXTEND P
-RINT(.\InputChar.lst) OBJECT(InputChar.obj)
line level source
1 //*************************************************************************************************
2 //* *
3 //* ******************************字母处理函数************************** *
4 //* *
5 //*************************************************************************************************
6
7 //*************************************************************************************************
8 //* *
9 //* ******************************头文件及宏定义************************** *
10 //* *
11 //*************************************************************************************************
12 #include "CapProcess.h"
13 #include "SmallProcess.h"
14
15
16 //*************************************************************************************************
17 //* *
18 //* ********************************全局变量****************************** *
19 //* *
20 //*************************************************************************************************
21 extern unsigned char uc_ClickCount;
22
23 bit b_CapStatus=0; //大小写模式:0--大写;1--小写。
24
25 //*************************************************************************************************
26 //* *
27 //* ********************************函数实现****************************** *
28 //* *
29 //*************************************************************************************************
30
31 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
32 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<大写字母处理函数>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
33 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
34 unsigned char ucCapProc(unsigned char ucKeyCode)
35 {
36 1 switch(uc_ClickCount%3)
37 1 {
38 2 case 0:return ucCapOne(ucKeyCode);break;
39 2 case 1:return ucCapTwo(ucKeyCode);break;
40 2 case 2:return ucCapThree(ucKeyCode);break;
41 2 default:break;
42 2 }
43 1 return ' ';
44 1 }
45
46 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
47 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<小写字母处理函数>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
48 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
49 unsigned char ucSmallProc(unsigned char ucKeyCode)
50 {
51 1 switch(uc_ClickCount%3)
52 1 {
53 2 case 0:return ucSmallOne(ucKeyCode);break;
54 2 case 1:return ucSmallTwo(ucKeyCode);break;
C51 COMPILER V8.05a INPUTCHAR 08/08/2007 08:55:16 PAGE 2
55 2 case 2:return ucSmallThree(ucKeyCode);break;
56 2 default:break;
57 2 }
58 1 return ' ';
59 1 }
60
61 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
62 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<获取按键ASC字符>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
63 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
64 unsigned char ucGetLetter(unsigned char ucKeyCode)
65 {
66 1 if(b_CapStatus==0) //切换到大写输入方式,返回字符ASC码。
67 1 return ucCapProc(ucKeyCode);
68 1 else
69 1 return ucSmallProc(ucKeyCode); //切换到小写输入方式,返回字符ASC码。
70 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 90 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- 3
IDATA SIZE = ---- ----
BIT SIZE = 1 ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -