diff --git a/src/cpu/808x.c b/src/cpu/808x.c index 8f92a1198..f8209def6 100644 --- a/src/cpu/808x.c +++ b/src/cpu/808x.c @@ -1233,19 +1233,6 @@ nearcall(uint16_t new_ip) push(&ret_ip); } -static void -farcall(uint16_t new_cs, uint16_t new_ip, int jump) -{ - if (jump) - wait(1, 0); - pfq_do_suspend(); - wait(3, 0); - push(&CS); - load_cs(new_cs); - wait(2, 0); - nearcall(new_ip); -} - static void farcall2(uint16_t new_cs, uint16_t new_ip) { @@ -1320,20 +1307,6 @@ sw_int(uint16_t intr) push(&old_ip); } -static void -int1(void) -{ - wait(2, 0); - intr_routine(1, 1); -} - -static void -int2(void) -{ - wait(2, 0); - intr_routine(2, 1); -} - static void int3(void) { @@ -1341,17 +1314,6 @@ int3(void) intr_routine(3, 0); } -static void -int_o(void) -{ - wait(4, 0); - - if (cpu_state.flags & V_FLAG) { - wait(2, 0); - intr_routine(4, 0); - } -} - void interrupt_808x(uint16_t addr) { @@ -2098,19 +2060,6 @@ farret(int far) set_ip(new_ip); } -/* The IRET microcode routine. */ -static void -iret_routine(void) -{ - wait(1, 0); - farret(1); - if (is_nec) - cpu_state.flags = pop() | 0x8002; - else - cpu_state.flags = pop() | 0x0002; - wait(1, 0); -} - /* Executes instructions up to the specified number of cycles. */ void execx86(int cycs)