added support for a config class/file. System not initialized perfect yet!
(env is not fixed) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@289
This commit is contained in:
parent
f02d440dc9
commit
d0fc1da99b
31 changed files with 502 additions and 120 deletions
|
@ -135,7 +135,7 @@ bool CALLBACK_Setup(Bitu callback,CallBack_Handler handler,Bitu type) {
|
|||
return true;
|
||||
}
|
||||
|
||||
void CALLBACK_Init(void) {
|
||||
void CALLBACK_Init(Section* sec) {
|
||||
Bitu i;
|
||||
for (i=0;i<CB_MAX;i++) {
|
||||
CallBack_Handlers[i]=&illegal_handler;
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "memory.h"
|
||||
#include "debug.h"
|
||||
#include "keyboard.h"
|
||||
#include "setup.h"
|
||||
|
||||
//Regs regs;
|
||||
|
||||
|
@ -137,7 +138,8 @@ void SetCPU16bit()
|
|||
}
|
||||
|
||||
|
||||
void CPU_Init(void) {
|
||||
void CPU_Init(Section* sec) {
|
||||
Section_prop * section=static_cast<Section_prop *>(sec);
|
||||
reg_eax=0;
|
||||
reg_ebx=0;
|
||||
reg_ecx=0;
|
||||
|
@ -166,7 +168,7 @@ void CPU_Init(void) {
|
|||
flags.io=0;
|
||||
|
||||
SetCPU16bit();
|
||||
cpu_cycles=2000;
|
||||
cpu_cycles=section->Get_int("CYCLES");
|
||||
KEYBOARD_AddEvent(KBD_f11,CTRL_PRESSED,CPU_CycleDecrease);
|
||||
KEYBOARD_AddEvent(KBD_f12,CTRL_PRESSED,CPU_CycleIncrease);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue