interrupt.c

来自「< 虚拟机设计与实现>>的 windows版本」· C语言 代码 · 共 65 行

C
65
字号
#include "interrupt.h"

#include <stdio.h>
#include "error.h"

void handleInt(U1 byte)
{
	if (interruptOn == FALSE)
	{
		ERROR0("handleInt(); interrupts are disabled\n");
		return;
	}

	switch (byte)
	{
	case 0:
		handlefileIO();
		break;
		
	case 1: 
		//handleFileManagement();
		break;
		
	case 2: 
		//handleProcessManagement();
        break;
		
	case 3:  
		//debug = TRUE;
		break;
		
	case 4:  
		//handleTimeDateCall();
        break;
		
	case 5:  
		//handleCommandLine();
        break;
		
	case 6:
		//handleMemoryStatus();
        break;
		
	case 7:
		//handleAllocCall();
        break;
		
	case 8:
		//handleMathCall();
        break;
		
	case 9:
		//handleNativeCall();
        break;
		
	case 10:
		//handleIPC();
        break;
		
	default:
		ERROR1("handleInt(): vector not handled (%u)\n", byte);
	}
	return;

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?