Update of /cvsroot/vba/VisualBoyAdvance/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6825
Modified Files:
thumb.h
Log Message:
- Changed all the clockticks management. Internal emulation speed should be more accurate now (fixes some games that crashed, like Advance Wars 2 or Tennis no Oojisama 2003), some other should have less slowdown/flickering (Breath of Fire 3's underwater level, Mario & Luigi Saga's intro). Added pseudo-support for bus prefetch (still need to check how it works for all the cases).
Index: thumb.h
===================================================================
RCS file: /cvsroot/vba/VisualBoyAdvance/src/thumb.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** thumb.h 19 Nov 2004 01:08:32 -0000 1.13
--- thumb.h 25 Jun 2005 06:12:26 -0000 1.14
***************
*** 2,6 ****
// VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
// Copyright (C) 1999-2003 Forgotten
! // Copyright (C) 2004 Forgotten and the VBA development team
// This program is free software; you can redistribute it and/or modify
--- 2,6 ----
// VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
// Copyright (C) 1999-2003 Forgotten
! // Copyright (C) 2005 Forgotten and the VBA development team
[...1565 lines suppressed...]
break;
***************
*** 2466,2469 ****
--- 2634,2639 ----
reg[14].I = temp|1;
THUMB_PREFETCH;
+ busPrefetchCount=0;
+ clockTicks += 2*codeTicksAccessSeq16(armNextPC) + codeTicksAccess16(armNextPC)+3;
}
break;
***************
*** 2499,2501 ****
CPUUndefinedException();
break;
! }
--- 2669,2671 ----
CPUUndefinedException();
break;
! }
\ No newline at end of file
|