PowerGlove Problem: Famicom with US Cart

Are you new to 6502, NES, or even programming in general? Post any of your questions here. Remember - the only dumb question is the question that remains unasked.

Moderator: Moderators

User avatar
rainwarrior
Posts: 8731
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: PowerGlove Problem: Famicom with US Cart

Post by rainwarrior »

Do you already have an Everdrive/PowerPak ready?
ReplayRetro
Posts: 10
Joined: Mon Mar 02, 2015 9:58 am

Re: PowerGlove Problem: Famicom with US Cart

Post by ReplayRetro »

i've not picked it up off my friend yet but i could easily do so as early as tomorrow, he has the NES everdrive (i think its called the N8 or something like that?)
User avatar
rainwarrior
Posts: 8731
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: PowerGlove Problem: Famicom with US Cart

Post by rainwarrior »

Okay, well, I'll put it on my list of things to do and try to find some time in the next few days to prepare a test patch (unless someone else is interested in doing it, in the meantime).
ReplayRetro
Posts: 10
Joined: Mon Mar 02, 2015 9:58 am

Re: PowerGlove Problem: Famicom with US Cart

Post by ReplayRetro »

ok that's brilliant, thanks for your time, hope to hear from you soon :)
User avatar
rainwarrior
Posts: 8731
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: PowerGlove Problem: Famicom with US Cart

Post by rainwarrior »

I've attached a potential patch for Super Glove Ball. Please test it out and let me know if it works.

I also looked at Bad Street Brawler, but it seems to do the correct thing when it reads the controller. Could you play Bad Street Brawler and tell me if that game works? (No patch should be needed.)

The patch was pretty straightforward, there were only a few places in the code that seemed to be reading the controller, and they were all in the fixed bank.

Code: Select all

; replacements for lda $4016 and lda $4017, placed in unused region at $FFEA
patch2:
        lda     $4017
        jmp     patch_common
patch1:
        lda     $4016
patch_common:
        and     #3
        cmp     #1
        rol     a
        rts

; patch at $DC74
:
        ;lda    $4016
        jsr     patch1
        ror     a
        rol     $2A
        ;lda    $4017
        jsr     patch2
        ror     a
        rol     $2C
        dex
        bne     :-

; patch at $DD03
:
        ;lda    $4016
        jsr     patch1
        lsr     a
        rol     $24
        ;lda    $4017
        jsr     patch2
        lsr     a
        rol     $2C
        dey
        bne     :-

; patch at $DD3D
:
        ;lda    $4016
        jsr     patch1
        lsr     a
        rol     $24
        dey
        bne     :-
Attachments
Super Glove Ball (J) Patch 0.ips
Famicom PAX compatibility patch for Super Glove Ball
(64 Bytes) Downloaded 193 times
ReplayRetro
Posts: 10
Joined: Mon Mar 02, 2015 9:58 am

Re: PowerGlove Problem: Famicom with US Cart

Post by ReplayRetro »

Excellent work, thanks, it seems to be working, control is a little sketchy but i think that's likely to be the actual glove rather than anything else, i'm going to try it on a smaller TV later and see if that helps.
Also took a look at Bad Street Brawlers and you're right, it seems to work fine so it must just be that Glove Ball was coded for the US market only, i think BSB is a conversion of something else though so that could explain it too as it may already have been designed to work with the expansion socket on the famicom.
The only problem i'm really having is that sometimes the game doesn't seem to load the instructions to the Glove, but i think that's an issue with the flash cart as the glove isn't getting the instructions as soon as the console boots, seems to work 70% of the time though at least.
Thanks for your work, i really appreciate everything you've done for me
Post Reply