zl1mail.c
来自「notebook key borad LED function」· C语言 代码 · 共 38 行
C
38 行
#include<stdlib.h>
#include<stdio.h>
#include<dos.h>
#include <STDIO.H>
#include <DOS.H>
#include <BIOS.H>
#include <TIME.H>
#include <CONIO.H>
#include <string.h>
#define PORT_ENABLE 0x119B
void main(int argc,int *argv[])
{
char temp=0;
if (! stricmp(argv[1],"e"))
{
//printf("d:%s",argv[1]);
temp = inportb(PORT_ENABLE);
temp = (temp | 0x08);
outportb(PORT_ENABLE,temp);
delay(10);
exit(0);
}
if (! stricmp(argv[1],"d"))
{
temp = inportb(PORT_ENABLE);
temp = (temp & 0xF7);
outportb(PORT_ENABLE,temp);
delay(10);
exit(0);
}
//printf("d:%s",argv[2]);
exit(1);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?