lui t0 $XXXX // First half of controll address(+0880)

lw t0 $XXXX // second half of contrrol address

addiu t1 zero $XXXX // button you want

addiu t2 zero $0000 // My method what it does is when you let go of button above it turns off

bne t0 t1 $To next bne // branchs to next bne if you dont press the button in t1

nop //delay slot

lui t3 $XXXX //first half of code address (+0880)

lui t4 $XXXX //first half of ON value

ori t4 t4 $XXXX// seconed half of ON value

sw t4 $XXXX // seconed half of code address

bne t0 t2 $to jr ra // branch if you let go of button in t1

nop //delay slot

lui t3 $XXXX //first half of code address (+0880)

lui t4 $XXXX //first half of OFF value

ori t4 t4 $XXXX// seconed half of OFF value

sw t4 $XXXX // seconed half of code address

jr ra

nop

My method enjoy :thumbs:

-FoodFx-