This UberASM allows you to set up a combination of buttons that will hurt or kill Mario when pressed. You can set the logic to hurt/kill when any of the selected buttons are pressed, or when all of the selected buttons are pressed. If using the latter, keep in mind that some combinations may not be possible in practice due to controller/keyboard limitations.
By default, it is set to kill Mario when left or right are pressed.
Requested by DasFueller.
v1.1: A/B and X/Y are now separated, so B cannot be triggered by A, nor Y by X.
-Edit: Tweaked the code so it also works for player 2.
Select and Start were commented incorrectly in the asm file, but it was minor enough that I just swapped them in a slightly updated file. Also added the lorom and sa-1 tags. Besides that, everything I tried worked as intended (including 2 player), so it's accepted.