Re: [hatari-devel] New version of WinUAE's cpu core

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

On keskiviikko 03 joulukuu 2014, Nicolas Pomarède wrote:
> > +	(*cpufunctbl[0X4E71])(0x4E71);
....
> So, the trick I used to avoid handling all this in hatari-glue.c is to
> execute a "NOP". This will have the same effect of incrementing PC by 2,
> pointing to the next instruction and it will also take care
> automatically of all the prefetching and internal registers update for
> whatever cpu mode you're using.

Could you add some descriptively named static inline function for that,
E.g. advance_to_next_instruction()?  Directly invoking CPU instruction
table looks a bit disturbing. :-)


	- Eero



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/