File:  [RetroPC.NET] / np2 / bios / Attic / bios08.c
Revision 1.3: download - view: text, annotated - select for diffs
Fri Dec 12 10:04:39 2003 JST (21 years, 10 months ago) by yui
Branches: MAIN
CVS tags: VER_0_74, VER_0_73, HEAD
fix memory... (T.Yui)

#include	"compiler.h"
#include	"cpucore.h"
#include	"pccore.h"
#include	"iocore.h"
#include	"bios.h"
#include	"biosmem.h"


void bios0x08(void) {

	UINT16	catimcnt;

	catimcnt = GETBIOSMEM16(MEMW_CA_TIM_CNT);
	catimcnt--;
	SETBIOSMEM16(MEMW_CA_TIM_CNT, catimcnt);
	if (catimcnt == 0) {
		pic.pi[0].imr |= PIC_SYSTEMTIMER;
		iocore_out8(0x00, 0x20);
		CPU_INTERRUPT(7);
	}
	else {
		iocore_out8(0x00, 0x20);
		bios0x1c_03();
	}
}


RetroPC.NET-CVS <cvs@retropc.net>