comparison m68k_to_x86.c @ 87:60b5c9e2f4e0

vertical interrupts now work
author Mike Pavone <pavone@retrodev.com>
date Wed, 26 Dec 2012 20:18:58 -0800
parents 3d3966c254b2
children c3d034e076ee
comparison
equal deleted inserted replaced
86:3d3966c254b2 87:60b5c9e2f4e0
48 dst = add_ir(dst, num, CYCLES, SZ_D); 48 dst = add_ir(dst, num, CYCLES, SZ_D);
49 } 49 }
50 50
51 uint8_t * check_cycles_int(uint8_t * dst, uint32_t address) 51 uint8_t * check_cycles_int(uint8_t * dst, uint32_t address)
52 { 52 {
53 dst = cmp_rr(dst, LIMIT, CYCLES, SZ_D); 53 dst = cmp_rr(dst, CYCLES, LIMIT, SZ_D);
54 uint8_t * jmp_off = dst+1; 54 uint8_t * jmp_off = dst+1;
55 dst = jcc(dst, CC_NC, dst + 7); 55 dst = jcc(dst, CC_NC, dst + 7);
56 dst = mov_ir(dst, address, SCRATCH1, SZ_D); 56 dst = mov_ir(dst, address, SCRATCH1, SZ_D);
57 dst = call(dst, (uint8_t *)handle_cycle_limit_int); 57 dst = call(dst, (uint8_t *)handle_cycle_limit_int);
58 *jmp_off = dst - (jmp_off+1); 58 *jmp_off = dst - (jmp_off+1);