Jump to content
  • entries
    654
  • comments
    2,663
  • views
    891,607

Warlords fix for XRGB-mini


SpiceWare

1,921 views

 Share

In this topic about the exciting new RGB mod for the 2600, collinp reported that the XRGB-mini had problems syncing with Warlords.

I took a quick look and noticed that VSYNC was set before the WSYNC, instead of after, which resulted in the sync signal starting late in the scanline.
blogentry-3056-0-91279700-1440257063_thumb.png

I did a quick hack via Stella to swap the order. The hack resulted in the kings getting shifted to the right, but was enough for collinp to confirm that moving the VSYNC after the WSYNC did indeed fix the problem.
blogentry-3056-0-08296800-1440257072_thumb.png

Today I fixed the sync and king positions by modifying the source I documented back in 2006. The source can be used to compile the original ROM or an XRGB-mini compatible build by use of the constant XRGBMINI:

; set to 1 for VSYNC fix for XRGBMINI, set to 0 for original
XRGBMINI    = 1

...

StartOfFrame: 
       LDA    #$82        ; P-----V- P-paddles are dumped to ground, V-vertical Blank is started
       
   if XRGBMINI = 1
       ldx #$50           ; move left 5
       STA    VBLANK  
       STA    WSYNC       ; Wait until end of 1st V-Sync scan Line
       STA    VSYNC       ; Start Vertical Sync
       STX    HMM0
       STX    HMM1
   else
       STA    VBLANK  
       STA    VSYNC       ; Start Vertical Sync
       STA    WSYNC       ; Wait until end of 1st V-Sync scan Line
       LDA    #$20        ; Move Left 2
       STA    HMM0        ; 3 5
       STA    HMM1        ; 3 8
   endif
 


ROM

warlords_xrgbmini.bin

 


Source

warlords.asm

 


Defender

defender_vsync.bin

 

defender_vblank.bin

  • Like 2
 Share

2 Comments


Recommended Comments

This is actually cool. Been a fan of Warlords for years and one I love to break out to play against three other friends. Thanks for doing this.

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...