Hmm, I did this:Stef wrote:How you managed to get that working ???Charles MacDonald wrote:So I can confirm the Z80 can write to 68K RAM just fine....
I made many tests about it and i never worked
I tried to make the Z80 increasing slowly a byte in 68k ram, and the 68k to read and display that number... without sucess.
I set the bank to $FF8000-$FFFFFF and had the Z80 copy the first four bytes of $8000-$8003 to its own RAM and then increment $8004 in a loop. The 68K RAM was filled with $DEADBEEF. In VBlank I printed a portion of Z80 and 68K RAM.
The Z80 RAM showed the four bytes copied were $FFFFFFFF instead of $DEADBEEF.
The 68K RAM had zero written at offset $FF8004, because the increment operation by the Z80 read $FF (instead of $DE), incremented it to $00, and wrote it back.
Maybe that's too simple of a test and I should try something more complex later this week, it was just the fastest thing to code in a few minutes.
For all I know it could be influenced by even/odd addresses or using the low or high 32K of 68K work RAM. If you have any ideas I will certainly try them. It would be good to develop a comprehensive test, then I could post the source+ROM here and others could try on their systems.