Language…
12 users online: 35TCB77, Buflen, crm0622, crocodileman94, fanfan21, Green Jerry, Hayashi Neru, KoJi, Maw, Metakabe, Neuromancer, signature_steve - Guests: 236 - Bots: 331
Users: 64,795 (2,377 active)
Latest user: mathew

Switching the A and R buttons with UberASM?

The title pretty much explains it, I need help trying to make an UberASM code that switches the A and R controls.


Try this.

Code
main:
    LDA $17 : STA $00
    LDA $18 : STA $01
    
    LDA #$90    ; clear a/r bits
    TRB $17
    TRB $18
    
    LDA $16     ; clear a+b bit if b is clear
    AND #$80
    EOR #$80
    TRB $15
    
    LDA #$10    ; move a bit to r
    BIT $00	
    BPL +
    TSB $17
  + BIT $01
    BPL +
    TSB $18
  + 
    
    LDA $00     ; move r bit to a
    AND #$10
    BEQ +
    LDA #$80
    TSB $15
    TSB $17
  + LDA $01
    AND #$10
    BEQ +
    LDA #$80
    TSB $18
  + 
    
    RTL


Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
Hmm, all this seemed to do is make Mario have a smaller jump and not be able to run which was the same problem I ran into while making this.


Seems to be working fine for me, at least. You can see my inputs in the bottom left.



Are you sure you actually reinserted with the tool, and into the correct level?

Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
Oh, apparently I had the A/R buttons switched on my emulator before testing this so that made it seem like this ASM wasn't working. #smrpg{ohno} Now that I've switched them back it works perfectly, thanks.