Re: Microcontroller "PEEKing" into C64 memory?

From: Gerrit Heitsch <gerrit_at_laosinh.s.bawue.de>
Date: Fri, 22 Jan 2016 16:09:10 +0100
Message-ID: <56A24616.3040305@laosinh.s.bawue.de>
On 01/22/2016 03:46 PM, silverdr@wfmh.org.pl wrote:
>
>> On 2016-01-22, at 15:38, Gerrit Heitsch <gerrit@laosinh.s.bawue.de> wrote:
>>>>
>>>> Remember that VIC will still use the bus though, only the CPU is taken offline with the DMA line! So you have only about 500ns time before you need to free the bus again.
>>>
>>> Sure. You'd need to act the way CPU does - use "half-cycles".
>>
>> There is another problem with the DMA line. It affects AEC and RDY. But the 6510 cannot be stopped in a write cycle. That's why the VIC sets RDY 3 cycles earlier than it needs the bus (3 write cycles in a row is the max that can happen).
>>
>> That means you cannot use the DMA signal for accessing Memory while the 6510 is doing something useful. Sooner or later you will assert it while the CPU is in a write cycle and cause data corruption.
>
> Can't you HLT it first?

Yes, that would be BA on the Expansionport. But that 3 write cycle rule 
needs to be taken into account.


> In any case - as written already - if only PEEKing the locations is needed, then this isn't even needed at all.

Hm? If you want to grab a Byte from the C64 memory, then you still need 
to take over the bus and unless you don't care about crashes, you need 
to do it by the book.


  Gerrit



       Message was sent through the cbm-hackers mailing list
Received on 2016-01-22 16:00:11

Archive generated by hypermail 2.2.0.