Mednafen Members Members   Search Search   Help Help   Register Register   Login Login   Home Home
Home » Other » PC Engine, PC-FX » Question about the VDC latch
Show: Today's Messages  :: Show Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Question about the VDC latch [message #657] Thu, 08 February 2007 19:00 Go to next message
Administrator  [PM]
Looking through the Spriggan Mark 2 code, it appears as if each of the VDC regs has its own latch/buffer.

Spriggan Mark 2:
- store the working reg to zeropage address buffer, before writing to the VDC
- preceed to write to the other regs, i.e. $00 and $02
- interrupt occurs during the transfer, changes reg to $07 or $08, writes to the VDC, then restores VDC reg from zeropage buffer

When the interrupt happens between writing to $0002 and $0003, it does not appear to corrupt the latch when returning from interrupt. Is this correct?
Re: Question about the VDC latch [message #658 is a reply to message #657 ] Thu, 08 February 2007 19:01 Go to previous message
Administrator  [PM]
The VRAM write latch is specific to VDC register $02 (VWR) and not the $0002 or $0003 data ports. When you access $0002 or $0003, you are directly accessing the register selected by $0000, instead of any temporary storage.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic:SGX/PCE Hsync lib
Next Topic:PC Engine Operating System
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ ]

Current Time: Sat May 11 12:00:45 CDT 2024
.:: Contact :: Home ::.

Powered by FUDforum.
Copyright © FUDforum Bulletin Board Software