mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-17 15:32:30 +08:00
If user provided IBM ROM BASIC, then INT 18h should jump to it
This commit is contained in:
@@ -6744,9 +6744,16 @@ static Bitu IRQ15_Dummy(void) {
|
|||||||
void On_Software_CPU_Reset();
|
void On_Software_CPU_Reset();
|
||||||
|
|
||||||
static Bitu INT18_Handler(void) {
|
static Bitu INT18_Handler(void) {
|
||||||
|
if (ibm_rom_basic_size != 0) {
|
||||||
|
/* jump to BASIC (usually F600:0000 for IBM 5150 ROM BASIC) */
|
||||||
|
SegSet16(cs, ibm_rom_basic_base >> 4);
|
||||||
|
reg_eip = 0;
|
||||||
|
}
|
||||||
|
else {
|
||||||
LOG_MSG("Restart by INT 18h requested\n");
|
LOG_MSG("Restart by INT 18h requested\n");
|
||||||
On_Software_CPU_Reset();
|
On_Software_CPU_Reset();
|
||||||
/* does not return */
|
/* does not return */
|
||||||
|
}
|
||||||
return CBRET_NONE;
|
return CBRET_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user