代码搜索结果

找到约 10,000 项符合 Switch 的代码

switch lamp.asm

ORG 00H START: JB P1.7,LIG ;如果开关闭合,则点亮LED CLR P1.0 ;否则熄灭LED SJMP START LIG: SETB P1.0 SJMP START END

multi switch.asm

ORG 00H START: MOV A,P1 ;读取P1口数据 SWAP A ;交换A中高四位与低四位的位置 ORL A,#0F0H ;与0F0H相或 MOV P1,A ;将开关状态送LED显示 SJMP START END

lc-switch.h

/* * Copyright (c) 2004-2005, Swedish Institute of Computer Science. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted pr

nb_switch.c

/* nb_switch.c - nb_switch */ #include #include #include #include SYSCALL gettime(unsigned long *); /*---------------------------------------------