Key Remapper; Wii Chuck [Vega] Wii Chuck only This code allows you to select a Button (Button 1) that can also activate another Button (Button 2). Button 1's original function is disabled. XXXX = Button 1 YYYY = Button 2 NTSC-U Rev1 C225A230 00000005 80640004 3980XXXX 7C6B6039 41A20010 7C636278 6063YYYY 90640004 7E0903A6 60000000 00000000 Code creator: Vega #Address #NTSC-U = 8025A230 #r3 = safe #r4 + 4 = Where to write Input to (will be loaded by CPU later) #Load Current Controller Halfword Input lwz r3, 0x0004 (r4) #Set Button 1 li r12, 0x0400 #B button used for compilation, adjust this accordingly #Check if Button 1 was at least pressed and. r11, r3, r12 beq+ default_instruction #Remove Button 1's value from Controller Halfword Input xor r3, r3, r12 #Now place in Button 2's value as the replacement ori r3, r3, 0x0800 #A button used for compilation, adjust this accordingly #Write updated Input to memory so when CPU loads it, it will be our new Input stw r3, 0x0004 (r4) #Default Instruction default_instruction: mtctr r16