Compound Dispatch

  The program requires one of several alternative behaviors as indicated by several numerically encoded choices. Therefore:
Dispatch to handlers based on the first encoding. Then let each handler further dispatch on the second (and subsequent) choices.
  Some handlers may not require a full dispatch. 

An alternative is to arithmetically combine the numerical encodings into a single cross-product choice.

 

PDP-8 Simulator
© 1975, 1998, Ward Cunningham
all rights reserved