V9990 write mask

Página 2/7
1 | | 3 | 4 | 5 | 6 | 7

Por GhostwriterP

Hero (528)

imagem de GhostwriterP

29-12-2019, 11:14

PingPong wrote:

I think GhostWriterP had done come experiments in P1 mode with BMLx commands initially reporting they not worked as expected but finally saying it was a problem related to him not the V9990, and that the V9990 worked well.

Nope, never said that, BMXL (or BMLX) still does not do what you would expect in P1.

hit9918 wrote:

from some other thread I got the idea that the blitter does blit in layer A and layer B at the same time. and that one usualy does disable one with the mask registers.
but in the manual is said that in P1 mode the bits SX9 and DX9 select layer A vs layer B.

The manual states you need to do both.

Por Metalion

Paragon (1151)

imagem de Metalion

29-12-2019, 12:20

No wonder there's not a lot of games using V9990.
It seems to me we're not really sure how it works !

Por PingPong

Prophet (3529)

imagem de PingPong

29-12-2019, 13:11

Quote:

Nope, never said that, BMXL (or BMLX) still does not do what you would expect in P1.

I ve thought so. It is I. The same post you reported a difference in emulation of the ce bit on V9990 versus open msx emulation
In the end does BMLx do what is supposed to Do in P1 or p2 mode?

Por GhostwriterP

Hero (528)

imagem de GhostwriterP

29-12-2019, 13:48

I was referring to LMMM commands, AFAIK BMXL (or BMLX) are still "broken" in P1. I am not sure about P2, never tried it in that mode.

Por Manel46

Hero (562)

imagem de Manel46

29-12-2019, 14:57

VDP commands work perfectly with bitmap modes.
In pattern mode (P1 / P2), I'm not sure. It sure is problematic.

Por PingPong

Prophet (3529)

imagem de PingPong

29-12-2019, 18:40

We need someone that does some test with real hw to improve emulation

Por Juan Luis

Expert (105)

imagem de Juan Luis

06-01-2020, 23:16

Manel46 wrote:

VDP commands work perfectly with bitmap modes.
In pattern mode (P1 / P2), I'm not sure. It sure is problematic.

I have developed a test for real GFX9990 or clone. This code makes a flip X of a sprite by blitter BMXL command. I would like to know if this test works fine on a real hardware.

Download Link:
https://drive.google.com/drive/folders/1a_CY1ZD8t5vYIuwDE3NH...

The expected result should be Rygar facing to left in sprite (see the .jpg in Google Drive). The second row of sprite patterns contains the definition of the sprite. If the answer is yes, blitter could be used to flip sprites horizontally and vertically from VRAM to VRAM.

I have also developed several test to find out how V9990 transfer VRAM in BMLL, BMXL and BMLX. The tests upload 512KBytes of random data, perform a blitter operation and download all VRAM into a file. Four transfer test with different parameters are performed and four output files are generated.

Carrying these files to Window, we can compare the initial VRAM memory snapshot with VRAM snapshot after the command execution with FC /B (binary file comparison) command of CMD command line. This can be used to check differences between initial and final command execution, and if we compare the output file generated by a real V9990 and OpenMSX, we can see if OpenMSX emulates V9990 properly. You must compare output files with same number.

If the OpenMSX emulation if good, FC /B will return "No differences found between files".

The test is in folder V9990-Test. P1-TEST.COM and VRAM-INI.dat must be placed on an empty subdirectory of your hard disk. The test generates 4 files of 512KBytes, so it takes 2MBytes of space in your hard disk.

Please, share with me the four output files generated. I want to study them.
Thanks.

Por PingPong

Prophet (3529)

imagem de PingPong

06-01-2020, 23:26

very good, jean luis!
i apreciate a lot this and i hope openMSX developers apreciate too.

Por Manel46

Hero (562)

imagem de Manel46

07-01-2020, 11:11

Hi Juan Luis
The rom works fine, although some corruption appears on the black background. You should clean the vram beforehand.
Performed the test, and I have the 4 files. It is best that you send them by email, so you can analyze them.
In my profile you have my address. Send me an email and I can answer you. You are from here and we will understand each other in Spanish.

Por Juan Luis

Expert (105)

imagem de Juan Luis

07-01-2020, 16:40

Ok, Manel. I have already sent you an e-mail and I have already received your answer with the files.

The good new is Flip X is possible in real V9990 with just one BMXL command. The bad new, for me, is that I can't understand why PNTB or PGTB is dirty. At least the original Rygar patterns, the flipped pattern and Sprite is shown correctly.

I continue studying the problem.

Thanks for your help.

Página 2/7
1 | | 3 | 4 | 5 | 6 | 7