English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   Coders. Asm / Hardware (https://eab.abime.net/forumdisplay.php?f=112)
-   -   ECS hsync/hblank: help required (WinUAE related?) (https://eab.abime.net/showthread.php?t=79107)

ovale 19 July 2015 12:52

ECS hsync/hblank: help required (WinUAE related?)
 
1 Attachment(s)
Hello,

I'm doing some experiments with the variable horizontal sync/blank of ECS.
As first step I just want to have a valid PAL signal.

I hacked the example demo found in winuaedemotoolchain5v3 and got something working (attached).
For sake of simplicity I left variable Vsync and vblank off, so here the HW is using the hardwired v*.

I have no access to real HW, I'm doing my experiment on WinUAE 3.1.

I managed to have the display in the same position as in hardwired PAL but:
1) WinUAE reports around 24fps instead of 50fps
2) The music is slow
I guess VBI are triggered less frequently.

Here the questions:
1) Could someone try it on real HW (ECS)? And maybe suggest a fix?
2) For Toni, To what degree WinUAE emulation of this aspect of ECS is complete. Could you try my test?
3) For Toni, I humbly suggest to add visualization of syncs and blanks in 'Overscan blanking' filter setting.

This is the copper list snippet

dc.l $01dc01a0 ; BEAMCON0
dc.l $01c000e2 ; HTOTAL
dc.l $01c4000d ; HBSTRT
dc.l $01de0013 ; HSSTRT
dc.l $01c20024 ; HSSTOP
dc.l $01c60038 ; HBSTOP
dc.l $01e20108
dc.l $008e2c00 + $81
dc.l $00902c00 + (($81 + BPL_WIDTH*8) & $FF)
dc.l $00920038 ; DDFSTRT, $38 soon as possible without impacting sprites DMA
dc.l $00940038 + BPL_WIDTH*4 -8 ; DDFSTOP (max $E0)
dc.l $01004201 ; BPLCON0: BPU2 & COLOR & ECSENA
dc.l $01020000
dc.l $01080000+3*BPL_WIDTH,$010a0000+3*BPL_WIDTH
dc.l $01060000,$010c0011

Thanks in advance!

Toni Wilen 19 July 2015 13:21

Variable sync stuff is emulated enough to support few demos and all existing programmed display modes. It probably is not perfect.

But afaik BEAMCON0 VARBEAM also enables use of VTOTAL (but not blanking values). BEAMCON0 documentation is impossible to understand 100% without testing..


All times are GMT +2. The time now is 02:20.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.03925 seconds with 10 queries