trunk/src/mame/machine/seicop.c
r17946 | r17947 | |
1599 | 1599 | case (0x026/2): { state->m_scrollram16[3] = seibu_vregs[offset]; break; } |
1600 | 1600 | case (0x028/2): { state->m_scrollram16[4] = seibu_vregs[offset]; break; } |
1601 | 1601 | case (0x02a/2): { state->m_scrollram16[5] = seibu_vregs[offset]; break; } |
1602 | | |
1603 | 1602 | default: { logerror("seibu_common_video_regs_w unhandled offset %02x %04x\n",offset*2,data); break; } |
1604 | 1603 | } |
1605 | 1604 | } |
r17946 | r17947 | |
1834 | 1833 | (DC.W $1020, $F0C0, $0000, $0000) |
1835 | 1834 | X = collides at the same spot |
1836 | 1835 | Y = collides between 0xd0 and 0x20 |
1837 | | |
| 1836 | 0x588 bits 2 & 3 = 0 |
| 1837 | (DC.W $F0C0, $1020, $0000, $0000) |
| 1838 | X = collides between 0xb0 and 0x50 (inclusive) |
| 1839 | Y = collides between 0xd0 and 0x30 (not inclusive) |
| 1840 | 0x588 bits 2 & 3 = 0x580 bits 0 & 1 |
1838 | 1841 | */ |
1839 | 1842 | static void cop_take_hit_box_params(UINT8 offs) |
1840 | 1843 | { |
r17946 | r17947 | |
2361 | 2364 | int div = space->read_word(cop_register[0]+(0x36^2)); |
2362 | 2365 | int res; |
2363 | 2366 | |
| 2367 | cop_status = 0x8007; |
| 2368 | |
2364 | 2369 | if(!div) |
2365 | 2370 | { |
2366 | 2371 | printf("divide by zero?\n"); |