This is a simple uberASM that allows you to disable any single or combination of controller inputs for the duration of a level.
You cannot disable combinations of buttons without also disabling them individually.
For example, if you wanted Y and B to function individually but disable Y+B pressed together, this is not possible with this patch in its current form.
Could be used to disable spin jump or regular jump in a level, or any directional input, or any combination of these.
Can also be used to disable L/R, so you could use this to disable screen scrolling on a per level basis if you so desired.
The submission has been updated by the author to fix some issues, though do note that there are caveats with disabling certain buttons (X/Y for example) because of the way SMW handles controller inputs. Otherwise it works fine.