Is there a jumptable tutorial somewhere, how to construct and use them, for a beginning programmer? I have tried to understand some code which uses jumptables (in assembler, not macros) but must confess that I do not understand how it works.

Plus I noticed bitrakes switch/case macro at http://www.madwizard.org/snippets/viewSnippet.php?s_ID=9 but how would I actually use this? Would this be a good choice to use for a large number of branches?

I have not programmed before and only just started learning assembler, done small test programs for syntax and basic concepts, please bear with me..
Posted on 2003-06-16 06:26:47 by kilves76

Is there a jumptable tutorial somewhere, how to construct and use them, for a beginning programmer? I have tried to understand some code which uses jumptables (in assembler, not macros) but must confess that I do not understand how it works.

Plus I noticed bitrakes switch/case macro at http://www.madwizard.org/snippets/viewSnippet.php?s_ID=9 but how would I actually use this? Would this be a good choice to use for a large number of branches?

I have not programmed before and only just started learning assembler, done small test programs for syntax and basic concepts, please bear with me..


The "Art of Assembly Language Programming" on Webster describes how to use jump tables to simulate switch/case statements and to design state machines.
http://webster.cs.ucr.edu
Cheers,
Randy Hyde
Posted on 2003-06-16 10:47:41 by rhyde