mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
idle debug removed, vpath added to Makefiles
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@526 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
c060a9ab9c
commit
8187ba84b7
6 changed files with 117 additions and 125 deletions
|
@ -90,10 +90,10 @@ cfi_loop:
|
|||
|
||||
|
||||
.macro inc_counter cond
|
||||
ldr r0, =idle_hit_counter
|
||||
ldr r1, [r0]
|
||||
add r1, r1, #1
|
||||
str\cond r1, [r0]
|
||||
@ ldr r0, =idle_hit_counter
|
||||
@ ldr r1, [r0]
|
||||
@ add r1, r1, #1
|
||||
@ str\cond r1, [r0]
|
||||
.endm
|
||||
|
||||
idle_bra:
|
||||
|
|
|
@ -39962,6 +39962,15 @@ RET(14)
|
|||
}
|
||||
|
||||
#ifdef PICODRIVE_HACK
|
||||
#if 0
|
||||
#define UPDATE_IDLE_COUNT { \
|
||||
extern int idle_hit_counter; \
|
||||
idle_hit_counter++; \
|
||||
}
|
||||
#else
|
||||
#define UPDATE_IDLE_COUNT
|
||||
#endif
|
||||
|
||||
// BRA
|
||||
OPCODE(0x6001_idle)
|
||||
{
|
||||
|
@ -39974,10 +39983,7 @@ OPCODE(0x6001_idle)
|
|||
#else
|
||||
PC += ((s8)(Opcode & 0xFE)) >> 1;
|
||||
#endif
|
||||
{
|
||||
extern int idle_hit_counter;
|
||||
idle_hit_counter++;
|
||||
}
|
||||
UPDATE_IDLE_COUNT
|
||||
m68kcontext.io_cycle_counter = 10;
|
||||
RET(10)
|
||||
}
|
||||
|
@ -39987,8 +39993,7 @@ OPCODE(0x6601_idle)
|
|||
{
|
||||
if (flag_NotZ)
|
||||
{
|
||||
extern int idle_hit_counter;
|
||||
idle_hit_counter++;
|
||||
UPDATE_IDLE_COUNT
|
||||
PC += ((s8)(Opcode & 0xFE)) >> 1;
|
||||
m68kcontext.io_cycle_counter = 8;
|
||||
}
|
||||
|
@ -39999,8 +40004,7 @@ OPCODE(0x6701_idle)
|
|||
{
|
||||
if (!flag_NotZ)
|
||||
{
|
||||
extern int idle_hit_counter;
|
||||
idle_hit_counter++;
|
||||
UPDATE_IDLE_COUNT
|
||||
PC += ((s8)(Opcode & 0xFE)) >> 1;
|
||||
m68kcontext.io_cycle_counter = 8;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue