Previous 15994 Revisions Next

r9066 Tuesday 7th September, 2010 at 13:32:31 UTC by Angelo Salese
[Hu6280]: Fixed a bogus bug with timer latch division value, fixes booting in Battle Royale (TG16)
[src/emu/cpu/h6280]h6280.c

src/emu/cpu/h6280/h6280.c
r9065r9066
327327{
328328   /* only returns countdown */
329329   h6280_Regs *cpustate = get_safe_token(space->cpu);
330   return ((cpustate->timer_value/1024)&0x7F)|(cpustate->io_buffer&0x80);
330   return ((cpustate->timer_value >> 10)&0x7F)|(cpustate->io_buffer&0x80);
331331}
332332
333333WRITE8_HANDLER( h6280_timer_w )
334334{
335335   h6280_Regs *cpustate = get_safe_token(space->cpu);
336336   cpustate->io_buffer=data;
337   switch (offset) {
337   switch (offset & 1) {
338338      case 0: /* Counter preload */
339339         cpustate->timer_load=cpustate->timer_value=((data&127)+1)*1024;
340340         return;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team