First commit with most sources
This commit is contained in:
51
mmvm/wwbios.cpp
Normal file
51
mmvm/wwbios.cpp
Normal file
@@ -0,0 +1,51 @@
|
||||
#include "../mmage/mmage.h"
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "wwbios.h"
|
||||
|
||||
void int_handler(int no) {
|
||||
int func_no;
|
||||
TCHAR msg[256];
|
||||
|
||||
func_no = *bregs[AH];
|
||||
|
||||
switch(no) {
|
||||
case INT_BIOS_EXIT:
|
||||
wonw32ctx->running = FALSE;
|
||||
wsprintf(msg, TEXT("アプリケーションは終了しました"));
|
||||
MessageBox(wonw32ctx->hWnd, msg, TEXT("終了"), MB_OK);
|
||||
break;
|
||||
|
||||
case INT_KEY:
|
||||
key_handler(func_no);
|
||||
break;
|
||||
case INT_DISP:
|
||||
disp_handler(func_no);
|
||||
break;
|
||||
case INT_TEXT:
|
||||
text_handler(func_no);
|
||||
break;
|
||||
case INT_SERIAL:
|
||||
// serial_handler(func_no);
|
||||
break;
|
||||
case INT_SOUND:
|
||||
// sound_handler(func_no);
|
||||
break;
|
||||
case INT_TIMER:
|
||||
timer_handler(func_no);
|
||||
break;
|
||||
case INT_SYSTEM:
|
||||
system_handler(func_no);
|
||||
break;
|
||||
case INT_BANK:
|
||||
// bank_handler(func_no);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user