[hatari-devel] 68030 Debug mode and new CPU
Laurent Sallafranque
laurent.sallafranque at free.fr
Sun Feb 20 21:50:35 CET 2011
Hi Eero,
I don't understand everything here (sorry).
If you think this patch is needed, please, fell free to upload it and
I'll test it.
Best regards
Laurent
Le 17/02/2011 22:25, Eero Tamminen a écrit :
> Hi,
>
> On keskiviikko 16 helmikuu 2011, Laurent Sallafranque wrote:
>>> You could add:
>>> #define f_out fprintf
>>>
>>> to one of the headers, remove the f_out stuff from cpu/custom.c and
>>> replace all "void *" args for functions calling f_out() with "FILE *".
>> Done, it works well now.
>> And it seems to have removed some compiling warnings.
> Actually, as f_out() seems to be used only in newcpu.c, the define could
> be there too. Unless you want all this kind of stuff to be in compat.h so
> that it's easier to find.
>
>
> While looking into newcpu.c more, I noticed that the "buf"& "bufsize"
> arguments to function:
> void m68k_disasm_2 (TCHAR *buf, int bufsize, uaecptr addr, uaecptr *nextpc,
> int cnt, uae_u32 *seaddr, uae_u32 *deaddr, int safemode)
>
> Are redundant with your changes (instead of using buf_out(), you're calling
> printf() directly and not buffering the string for later printing).
>
> Attached (untested) patch would clean that.
>
>
> - Eero
>
>
>
> _______________________________________________
> hatari-devel mailing list
> hatari-devel at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/hatari-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.berlios.de/pipermail/hatari-devel/attachments/20110220/a0dddf58/attachment.html>
More information about the hatari-devel
mailing list