Search found 81 matches

by eteream
Wed Dec 30, 2009 8:34 pm
Forum: Video Display Processor
Topic: Relationship between VDP and User/Kernel Mode?
Replies: 22
Views: 16007

Stef, I set this value to 2 at the very begining of my code. My first intention was to always work with 16bits, and don-t change it. Now I find that is not posible. So, now I will work with 8bits with dma-fill, and change this value acording with the operation. I began to read about MD internals few...
by eteream
Tue Dec 29, 2009 11:38 pm
Forum: Video Display Processor
Topic: Relationship between VDP and User/Kernel Mode?
Replies: 22
Views: 16007

That's what I do: enum xxx{ ADDR_PLANE_B = 0xE000, PLANE_SIZE = 0x1000, // 64x32 tiles }; #define DO_DMA_FILL(destination,size,value) _DoDMA16Fill(destination,(u16u8)(u16)((size)>>1),value) static volatile u16* const g_pCtrlPort16 = (u16*)0x00C00004; inline void _DoDMA16Fill( u16 destination, u16u8 ...
by eteream
Tue Dec 29, 2009 4:38 pm
Forum: Video Display Processor
Topic: Relationship between VDP and User/Kernel Mode?
Replies: 22
Views: 16007

thanks!! It helps a lot! If I move large amount of data to the DSP with the DSP activated, I see a corrupt data on screen (a line of titles not shown), should I turn off the dsp before? I don't know when it happens, random. The problem is in plane A memory. No HINT enabled. If I move data with DMA a...
by eteream
Tue Dec 29, 2009 1:04 am
Forum: Video Display Processor
Topic: Relationship between VDP and User/Kernel Mode?
Replies: 22
Views: 16007

It seems that your are right. The problem came from this code: * user mode move.w #0x2300,%sr which I believed blindly. The 0x0300 activates certain level of interrupts. And the 0x2000 set the ISP as the stack pointer, so it always uses the same stack. Right? Another questions: In KEGA if I turn off...
by eteream
Tue Dec 22, 2009 3:36 pm
Forum: Video Display Processor
Topic: Relationship between VDP and User/Kernel Mode?
Replies: 22
Views: 16007

Sorry I am wrong in one thing, I can modify VDP registers even in user or kernel mode.
MDKit works OK, sorry.

BUT if I not leave kernel mode nothing displays in Gens & Kega Fusion, and Gens KMOD not shows my palettes (¿??), shows only black colors (I confuse that with VPD registers :oops:).
by eteream
Tue Dec 22, 2009 2:27 pm
Forum: Video Display Processor
Topic: Relationship between VDP and User/Kernel Mode?
Replies: 22
Views: 16007

Relationship between VDP and User/Kernel Mode?

I am wondering wich is the relationship between the VDP & Kernel mode. The facts that happen with Gens are: - If I do not go to user mode nothing is painting on screen. - In user mode I can not modify main VDP registers, it have no efect. For example X resolution. Since I am waiting for EPROMs I can...