📄 tools.h
字号:
//define the common function
#ifndef __TOOLS_H__
#define __TOOLS_H__
#include "const.h"
extern "C" void MoveLinBlockD( LONGINT Src, LONGINT Dest, LONGINT Size);
//return the High Byte of one word
BYTE Hi(WORD Value);
//return the low Byte of one word
BYTE Lo(WORD Value);
//Write one Byte to the Specified Memory Location
void FOMemByte(LONGINT Addr, BYTE Data);
//Get one Byte from the Specified Memory Location
BYTE FIMemByte(LONGINT Addr);
//Write one WORD to the Specified Memory Location
void FOMemWord(LONGINT Addr, WORD Data);
//Get one WORD from the Specified Memory Location
WORD FIMemWord(LONGINT Addr);
//Allocate Memory in the XMS or convential Memory
//return the Linear Address for this Block
//BlockSize(Bytes)
LONGINT AllocLinearBlock(LONGINT BlockSize , LONGINT* pXMSBlockLeft , LONGINT* pXMSBlockPos);
//void MoveLinBlockD(LONGINT Src, LONGINT Dest, LONGINT Size);
void MoveLinBlockB(LONGINT Src, LONGINT Dest, LONGINT Size);
void MoveLinBlockW(LONGINT Src, LONGINT Dest, LONGINT Size);
void FillLinBlockD(LONGINT Dest, LONGINT Size, BYTE Data);
BOOL CompLinBlocks( LONGINT Block1, LONGINT Block2, LONGINT Size);
//Beep the 1KHz sound in Speaker
//The time is milliseconds (ms)
void Beep(unsigned long period);
#endif __TOOLS_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -