[hatari-devel] WinUae CPU for hatari

Thomas Huth huth at users.berlios.de
Fri Nov 19 15:56:59 CET 2010


On Thu, 18 Nov 2010 22:00:39 +0100
Laurent Sallafranque <laurent.sallafranque at free.fr> wrote:

> Hello,
> 
> You're right there.
> 
> When I included the WINUAE cpu code into hatari, I choose not to
> include memory.c and memory.h, but keep our code instead.
> I just added the needed variables.
> 
> But I've just forgotten to include the corresponding code (shame on
> me ;)
> 
> This gives me another question :
> 
> The missing code includes some more functions to add.
> But some of them differs from hatari memory.c and amiga memory.cpp.
> 
> For example,
> 
> Our hatari memory.c code:
> 
> /* A dummy bank that only contains zeros */
> 
> static uae_u32 dummy_lget(uaecptr addr)
> {
>      if (illegal_mem)
>      write_log ("Illegal lget at %08lx\n", (long)addr);
> 
>      return 0;
> }
> 
> 
> Amiga WinUae's newcpu.cpp code:
> 
> 
> static uae_u32 REGPARAM2 dummy_lget (uaecptr addr)
> {
> #ifdef JIT
>      special_mem |= S_READ;
> #endif
>      if (currprefs.illegal_mem)
>          dummylog (0, addr, 4, 0, 0);
>      return dummy_get (addr, 4);
> }

IIRC the dummy memory bank is completely overwritten by the other
memory regions, so this shouldn't matter for Hatari.

 Thomas



More information about the hatari-devel mailing list