2 * failed to compile due to incorrect calculation
3 * of offset for relative jump.
6 #pragma disable_warning 85
12 typedef enum CORE_STATE
{
24 uint16_t crcu32(uint32_t newval
, uint16_t crc
);
26 enum CORE_STATE
core_state_transition(uint8_t **instr
, uint32_t *transition_count
)
31 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pic14) // Lack of memory
32 void core_bench_state(uint32_t blksize
, uint8_t *memblock
,
33 int16_t seed1
, int16_t step
)
35 uint32_t final_counts
[NUM_CORE_STATES
];
36 uint32_t track_counts
[NUM_CORE_STATES
];
40 for (i
=0; i
<NUM_CORE_STATES
; i
++) {
41 final_counts
[i
]=track_counts
[i
]=0;
45 enum CORE_STATE fstate
=core_state_transition(&p
,track_counts
);
46 final_counts
[fstate
]++;
50 while (p
< (memblock
+blksize
)) {