📄 hal4sys.c
字号:
/*
//*************************************************************************
//
// P H I L I P S P R O P R I E T A R Y
//
// COPYRIGHT (c) 2000 BY PHILIPS SINGAPORE.
// -- ALL RIGHTS RESERVED --
//
// File Name: HAL4sys.c
// Author: ZhenYu Zhang
// Created: Feb. 1, 1999
// Modified:
// Revision: 0.0
//
//*************************************************************************
//
//*************************************************************************
*/
#include <stdio.h>
#include <dos.h>
#include <bios.h>
#include "BasicTyp.h"
#include "common.h"
#include "SysCnfg.h"
#include "hal4sys.h"
/*
//*************************************************************************
// Public static data
//*************************************************************************
*/
/*
//*************************************************************************
// Private static data
//*************************************************************************
*/
/*
//*************************************************************************
// Subroutines
//*************************************************************************
*/
void Hal4Sys_WaitinMS(IN ULONG time)
{
ULONG loop;
#if 1
for(loop = time ; loop > 0 ;loop--)
{
delay(1); //delay 1ms, CPU independent, DOS only
}
#else
for(loop = time ; loop > 0 ;loop--)
{
Hal4Sys_WaitinUS(1000); //delay 1ms, CPU dependant, OS independant
}
#endif
}
void Hal4Sys_WaitinUS(IN ULONG time)
{
ULONG loop;
for(loop =time*MACHINE_CYCLE;loop>0 ;loop--)
{
continue;
}
}
void Hal4Sys_Pause(void)
{
// printf("!! Pause !!, press any key to continue\n");
// while(!bioskey(1));
// bioskey(0);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -