代码搜索结果
找到约 10,000 项符合
Switch 的代码
switch.opt
### uVision2 Project, (C) Keil Software
### Do not modify !
cExt (*.c)
aExt (*.s*; *.src; *.a*)
oExt (*.obj)
lExt (*.lib)
tExt (*.txt; *.h; *.inc)
pExt (*.plm)
CppX (*.cpp)
DaveTm {
switch.plg
礦ision3 Build Log
Project:
F:\工程\新增程序\TX-1C学C语言\switch-case-break语句\switch.uv2
Project File Date: 07/02/2010
Output:
Build target 'Target 1'
switch.lnp
"switch.obj"
TO "switch"
switch.c
/****************************************************************************
“天祥电子” 倾情奉献
www.txmcu.cn
www.txmcu.com
************************************************************
switch.lst
C51 COMPILER V8.02 SWITCH 07/16/2010 11:35:46 PAGE 1
C51 COMPILER V8.02, COMPILATION OF MODULE SWITCH
OBJECT MODULE PLACED IN
switch.hex
:1000030020B4027F0120B5027F0220B6027F0320C5
:10001300B7027F04EF24FE600F14601114601324F1
:1000230003701475900F80D87590F080D375905538
:0C00330080CE7590AA80C9E4F59080C4CE
:0300000002003FBC
:0C003F00
switch.opt
### uVision2 Project, (C) Keil Software
### Do not modify !
cExt (*.c)
aExt (*.a*; *.src)
oExt (*.obj)
lExt (*.lib)
tExt (*.txt)
pExt (*.plm)
CppX (*.cpp)
DaveTm { 0,0,0,0,0,0,0,0 }
switch.c
#include
void Switchdemo(void)
{ Byte outputstate;
switch(outputstate)
{case 1:
P1_0=0;
P1_1=0;
P1_2=0;
break; //跳出循环
case 2:
P1_0=1;
P1_1=0;
P1_2=0;
break;
switch.jhd
MODULE switch
switch.vhd
-- 库声明
library IEEE;
use IEEE.STD_LOGIC_1164.all;
-- 实体声明
entity switch is
port (
din1 : in STD_LOGIC;
din2 : in STD_LOGIC;
sel : in STD_LOGIC;
dout : out STD_LO