So, I was looking at this question about jump tables, hoping to navigate from there to some other questions relating to switch/case constructs, but unfortunately the question turned out not to have a tag relating to that.
I would just suggest an edit to add such a tag to the question, but:
- I couldn't find an existing tag for that
- I'm not sure what the tag should be called
Since the code I'm looking at is using a series of dec
/sub
instructions interspersed with jz
, I'm especially hoping for a tag that isn't specific to jump-table based implementation techniques, but would apply to any way of implementing switch/case constructs: jump tables, series' or trees of comparisons, combinations thereof, or any other method that may exist.
Does this seem like a good idea, and if so what should the tag be called?