main.LST
上传用户:hzhsqp
上传日期:2022-07-28
资源大小:37k
文件大小:3k
- C51 COMPILER V9.00 MAIN 03/15/2010 20:39:13 PAGE 1
- C51 COMPILER V9.00, COMPILATION OF MODULE MAIN
- OBJECT MODULE PLACED IN main.OBJ
- COMPILER INVOKED BY: C:KeilC51BINC51.EXE main.c BROWSE DEBUG OBJECTEXTEND
- line level source
- 1 #include <reg51.h>
- 2 #include <3510i.h> //3510I头文件
- 3
- 4 int main(void)
- 5 {
- 6 1 int i;
- 7 1
- 8 1 //256色
- 9 1 //0b11100000 0xe0 red
- 10 1 //0b00011100 0x1c green
- 11 1 //0b00000011 0x03 blue
- 12 1
- 13 1 LCD_Initialize(); //LCD初始化
- 14 1
- 15 1 LCD_ColorSet(0); //0为256色模式,1为4096色模式
- 16 1 LCD_Clear(255,0); //清屏
- 17 1 addset(28,0,67,39); //设置起止坐标,4个参数依次为开始X,开始Y,结束x,结束Y
- 18 1 for(i=0;i<1600;i++)
- 19 1 {
- 20 2 send(img[i],1);
- 21 2 }
- 22 1
- 23 1 showhanzi(0,40,4,0xe0,255); //我
- 24 1 showhanzi(14,40,5,0xe0,255); //是
- 25 1 showhanzi(28,40,6,0xe0,255); //乞
- 26 1 showhanzi(42,40,7,0xe0,255); //鹅
- 27 1 showhanzi(56,40,8,0xe0,255); //我
- 28 1 showhanzi(70,40,9,0xe0,255); //怕
- 29 1 showhanzi(84,40,10,0xe0,255); //谁
- 30 1
- 31 1 showhanzi(0,5,0,0x03,255); //雨
- 32 1 showhanzi(14,5,1,0x03,255); //亭
- 33 1 showhanzi(0,19,2,0x03,255); //电
- 34 1 showhanzi(14,19,3,0x03,255); //子
- 35 1
- 36 1 showzifustr(5,55,"NOKIA 3510I-",0x03,255); //显示字符串
- 37 1 showzifu(90,55,Ver,0x03,255); //显示驱动版本
- 38 1
- 39 1 showzifustr(68,5,"GOOD",0,255); //显示字符串
- 40 1 showzifustr(75,17,"LCD",0,255); //显示字符串
- 41 1
- 42 1
- 43 1 while(1)
- 44 1 {
- 45 2
- 46 2
- 47 2
- 48 2 delayms(1500);
- 49 2
- 50 2 }
- 51 1
- 52 1 }
- MODULE INFORMATION: STATIC OVERLAYABLE
- C51 COMPILER V9.00 MAIN 03/15/2010 20:39:13 PAGE 2
- CODE SIZE = 1424 ----
- CONSTANT SIZE = 2978 ----
- XDATA SIZE = ---- ----
- PDATA SIZE = ---- ----
- DATA SIZE = 1 43
- IDATA SIZE = ---- ----
- BIT SIZE = ---- ----
- END OF MODULE INFORMATION.
- C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)