📄 io.cpp
字号:
//---------------------------------------------------------------------------
#pragma hdrstop
#include <vcl.h>
#include "IO.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
//bool g_bDebug = true;
//---------------------------------------------------------------------------
unsigned char inportb(unsigned short portid)
{unsigned short inpvalue;
/*
asm{ mov dx,portid
in ax,dx
mov inpvalue,ax
}
*/
return 1;//(unsigned char)inpvalue;
}
//---------------------------------------------------------------------------
void outportb(unsigned short portid,char value)
{
/*
asm{ mov al,value
mov dx,portid
out dx,al
}
*/
return;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -