mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
If user provided IBM ROM BASIC, then INT 18h should jump to it
This commit is contained in:
@@ -6744,10 +6744,17 @@ static Bitu IRQ15_Dummy(void) {
|
||||
void On_Software_CPU_Reset();
|
||||
|
||||
static Bitu INT18_Handler(void) {
|
||||
LOG_MSG("Restart by INT 18h requested\n");
|
||||
On_Software_CPU_Reset();
|
||||
/* does not return */
|
||||
return CBRET_NONE;
|
||||
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");
|
||||
On_Software_CPU_Reset();
|
||||
/* does not return */
|
||||
}
|
||||
return CBRET_NONE;
|
||||
}
|
||||
|
||||
static Bitu INT19_Handler(void) {
|
||||
|
Reference in New Issue
Block a user