⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webdoc1.lst

📁 一个通过8051来控制8019上网的程序 该程序已经通过并成功用于键盘
💻 LST
📖 第 1 页 / 共 3 页
字号:
C51 COMPILER V7.06   WEBDOC1                                                               03/01/2004 10:53:06 PAGE 1   


C51 COMPILER V7.06, COMPILATION OF MODULE WEBDOC1
OBJECT MODULE PLACED IN WEBDOC1.OBJ
COMPILER INVOKED BY: C:\KEIL\C51\BIN\C51.EXE WEBDOC1.C LARGE BROWSE DEBUG OBJECTEXTEND

stmt level    source

   1          //-----------------------------------------------------------------------------
   2          // Net WEBDOC.C
   3          //
   4          // This module contains web pages and headers
   5          //-----------------------------------------------------------------------------
   6          #include "net.h"
   7          
   8          
   9          // This is the header for web text pages.  LENGTH is the body
  10          // length, needed because in HTTP 1.1 we leave connection open
  11          // Includes control statements to prevent browser from caching page
  12          char code html_header[] = {
  13          "HTTP/1.1 200 OK\n"
  14          "Cache-control: no-cache\n"
  15          "Connection: Keep-Alive\n"
  16          "Content-Length: TAG:LEN1\n"
  17          "Content-Type: text/html\r\n\r\n" };
  18          
  19          
  20          
  21          // This page displays a table with weather data and a switch
  22          // to turn a port pin on and off. 
  23          char code web_page[] = {
  24          "<HTML><HEAD><TITLE>LS-C51仿真实验板 Web Server</TITLE>\n"
  25          "<META http-equiv=Content-Type content=\"text/html; charset=gb2312\">\n"
  26          /*"<META http-equiv=\"refresh\" content=\"5\">"*/
  27          "<META content=\"Microsoft FrontPage 5.0\" name=GENERATOR></HEAD>\n"
  28          "<BODY>\n"
  29          "<FORM action=/index.html method=post>\n"
  30          "<TABLE border=0 width=\"786\">\n"
  31          "<TBODY>\n"
  32          "<TR>\n"
  33          "<TD width=\"739\">\n"
  34          "<H1>&nbsp;&nbsp;&nbsp; \n"
  35          "<a href=\"http://www.ls-labs.com\" target=\"_blank\">"
  36          "<IMG src=\"photo1.jpg\" width=\"272\" height=\"58\"></H1></a>\n"
  37          "<H1><font size=\"4\"></font><font size=\"4\"> LS-C51单片机仿真实验板 Web Server \n"
  38          "演示程序</font></H1>\n"
  39          "<TABLE border=2 width=\"419\">\n"
  40          "<TBODY>\n"
  41          "<TR>\n"
  42          "<TD width=235 height=25>\n"
  43          "<p align=\"center\"><font face=\"宋体\">系统温度</font></TD>\n"
  44          "<TD width=166 height=25 align=\"center\">TAG:TMP1℃</TD></TR>\n"
  45          "<TR>\n"
  46          "<TD width=235 height=25>\n"
  47          "<p align=\"center\">ADC输入电压</TD>\n"
  48          "<TD width=166 height=25 align=\"center\">TAG:TMP2V</TD></TR>\n"
  49          "</TABLE><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp; LED指示灯: \n"
  50          "&nbsp; <INPUT type=radio CHECKED value=1 name=switch>灭 <INPUT type=radio \n"
  51          "value=0 name=switch TAG:CHK2>亮 &nbsp; &nbsp; <INPUT type=submit value=发送> </TD>\n"
  52          "<TD width=\"37\"><BR>&nbsp; &nbsp;&nbsp; \n"
  53          "</TD></TR>\n"
  54          "<TR>\n"
  55          "<TD width=\"739\">\n"
C51 COMPILER V7.06   WEBDOC1                                                               03/01/2004 10:53:06 PAGE 2   

  56          "</TD>\n"
  57          "<TD width=\"37\"> </TD></TR></TBODY></TABLE></FORM></BODY></HTML>\n"
  58              };
  59          
  60          
  61          
  62          // This is the header for jpeg graphic pages.  TAG2 is the body
  63          // length, needed because in HTTP 1.1 we leave connection open
  64          // Includes control statements to prevent browser from caching page
  65          char code jpeg_header[] = {
  66          "HTTP/1.1 200 OK\n"
  67          "Cache-control: no-cache\n"
  68          "Connection: Keep-Alive\n"
  69          "Content-Length: TAG:LEN2\n"
  70          "Content-Type: image/jpeg\r\n\r\n"};
  71          
  72          
  73          
  74          // This is jpeg image of the board which gets displayed on the web
  75          // page - to exercise capabilities of this server to send files
  76          // which span multple TCP segments.  This image is 6194 bytes.
  77          UCHAR code photo1_jpeg[] = {
  78          0xFF,0xD8,0xFF,0xE0,0x0,0x10,0x4A,0x46,0x49,0x46,0x0,0x1,0x1,0x1,0x1,0x2C,
  79          0x1,0x2C,0x0,0x0,0xFF,0xDB,0x0,0x43,0x0,0x8,0x6,0x6,0x7,0x6,0x5,0x8,
  80          0x7,0x7,0x7,0x9,0x9,0x8,0xA,0xC,0x14,0xD,0xC,0xB,0xB,0xC,0x19,0x12,
  81          0x13,0xF,0x14,0x1D,0x1A,0x1F,0x1E,0x1D,0x1A,0x1C,0x1C,0x20,0x24,0x2E,0x27,0x20,
  82          0x22,0x2C,0x23,0x1C,0x1C,0x28,0x37,0x29,0x2C,0x30,0x31,0x34,0x34,0x34,0x1F,0x27,
  83          0x39,0x3D,0x38,0x32,0x3C,0x2E,0x33,0x34,0x32,0xFF,0xDB,0x0,0x43,0x1,0x9,0x9,
  84          0x9,0xC,0xB,0xC,0x18,0xD,0xD,0x18,0x32,0x21,0x1C,0x21,0x32,0x32,0x32,0x32,
  85          0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,
  86          0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,
  87          0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0xFF,0xC0,
  88          0x0,0x11,0x8,0x0,0x3A,0x1,0x10,0x3,0x1,0x22,0x0,0x2,0x11,0x1,0x3,0x11,
  89          0x1,0xFF,0xC4,0x0,0x1F,0x0,0x0,0x1,0x5,0x1,0x1,0x1,0x1,0x1,0x1,0x0,
  90          0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,
  91          0xA,0xB,0xFF,0xC4,0x0,0xB5,0x10,0x0,0x2,0x1,0x3,0x3,0x2,0x4,0x3,0x5,
  92          0x5,0x4,0x4,0x0,0x0,0x1,0x7D,0x1,0x2,0x3,0x0,0x4,0x11,0x5,0x12,0x21,
  93          0x31,0x41,0x6,0x13,0x51,0x61,0x7,0x22,0x71,0x14,0x32,0x81,0x91,0xA1,0x8,0x23,
  94          0x42,0xB1,0xC1,0x15,0x52,0xD1,0xF0,0x24,0x33,0x62,0x72,0x82,0x9,0xA,0x16,0x17,
  95          0x18,0x19,0x1A,0x25,0x26,0x27,0x28,0x29,0x2A,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,
  96          0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,
  97          0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7A,
  98          0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,
  99          0x9A,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,
 100          0xB8,0xB9,0xBA,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xD2,0xD3,0xD4,0xD5,
 101          0xD6,0xD7,0xD8,0xD9,0xDA,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xF1,
 102          0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFF,0xC4,0x0,0x1F,0x1,0x0,0x3,
 103          0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x1,
 104          0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xA,0xB,0xFF,0xC4,0x0,0xB5,0x11,0x0,
 105          0x2,0x1,0x2,0x4,0x4,0x3,0x4,0x7,0x5,0x4,0x4,0x0,0x1,0x2,0x77,0x0,
 106          0x1,0x2,0x3,0x11,0x4,0x5,0x21,0x31,0x6,0x12,0x41,0x51,0x7,0x61,0x71,0x13,
 107          0x22,0x32,0x81,0x8,0x14,0x42,0x91,0xA1,0xB1,0xC1,0x9,0x23,0x33,0x52,0xF0,0x15,
 108          0x62,0x72,0xD1,0xA,0x16,0x24,0x34,0xE1,0x25,0xF1,0x17,0x18,0x19,0x1A,0x26,0x27,
 109          0x28,0x29,0x2A,0x35,0x36,0x37,0x38,0x39,0x3A,0x43,0x44,0x45,0x46,0x47,0x48,0x49,
 110          0x4A,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x63,0x64,0x65,0x66,0x67,0x68,0x69,
 111          0x6A,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x82,0x83,0x84,0x85,0x86,0x87,0x88,
 112          0x89,0x8A,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0xA2,0xA3,0xA4,0xA5,0xA6,
 113          0xA7,0xA8,0xA9,0xAA,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xC2,0xC3,0xC4,
 114          0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xE2,
 115          0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,
 116          0xFA,0xFF,0xDA,0x0,0xC,0x3,0x1,0x0,0x2,0x11,0x3,0x11,0x0,0x3F,0x0,0xF7,
 117          0xB3,0xD4,0xD2,0x52,0x9E,0xA6,0x92,0x82,0x2,0x8A,0x28,0xA0,0x41,0x45,0x65,0x6A,
C51 COMPILER V7.06   WEBDOC1                                                               03/01/2004 10:53:06 PAGE 3   

 118          0x7E,0x23,0xD3,0x34,0x99,0x96,0xDE,0xE2,0x72,0xD7,0x4F,0xF7,0x2D,0xA1,0x53,0x24,
 119          0xAE,0x7B,0x0,0xA3,0xD7,0xDF,0x15,0x3E,0x93,0x7F,0x2E,0xA5,0x65,0xF6,0x89,0xAC,
 120          0x67,0xB2,0x7D,0xEC,0xBE,0x54,0xE3,0xD,0x81,0xD0,0xFE,0x22,0xA7,0x9E,0x2D,0xDA,
 121          0xFA,0x85,0xCB,0xD4,0x57,0x37,0xE0,0xBD,0x7E,0xFB,0xC4,0x5A,0x54,0xD7,0x77,0xB6,
 122          0xF0,0x45,0xB2,0x63,0x1A,0x18,0x49,0xC3,0x60,0xC,0xF0,0x73,0x8E,0xBE,0xBC,0xFB,
 123          0x77,0xE9,0x28,0x84,0x94,0xE2,0xA4,0x81,0x3B,0xEA,0x14,0x57,0x23,0x37,0x8E,0xAC,
 124          0xE3,0xF1,0x72,0xE9,0x2,0x58,0x52,0xDA,0x3C,0xA4,0xB3,0x38,0x62,0x5A,0x5C,0xE0,
 125          0x22,0x60,0x11,0xC1,0xEA,0x4F,0xBF,0xA7,0x30,0xDF,0xFC,0x40,0x7B,0x5B,0x69,0xAE,
 126          0xA3,0xD0,0xAE,0xFE,0xCB,0xC,0xBE,0x4B,0xC9,0x71,0x22,0xC2,0x4B,0xE7,0xEE,0xAA,
 127          0xF2,0x49,0xE0,0xF4,0xE9,0x8E,0x71,0x59,0xBA,0xF4,0xD5,0xF5,0x17,0x32,0x3B,0x4A,
 128          0x2A,0xBD,0x95,0xD7,0xDB,0x6C,0x61,0xBA,0x10,0xCB,0x8,0x95,0x3,0x79,0x72,0xAE,
 129          0xD7,0x5C,0xF6,0x23,0xD6,0xAC,0x56,0xC9,0xDF,0x51,0x85,0x15,0x8B,0xE1,0xBD,0x66,
 130          0x7D,0x6E,0xDA,0xF2,0x79,0xA1,0x8E,0x25,0x8A,0xEE,0x48,0x63,0x8,0x49,0x25,0x57,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -