Hacker News new | ask | show | jobs
by ddingus 899 days ago
To emulate that feature in a development tool for the Parallax Propeller (FlexSpin), a sequence of labels was used.

on X goto a, b, c, d, e, 10000, Fred

While not quite the same, the core need is addressed and compiles to a fast jump table.

Interestingly, that tool allows one to build programs in SPIN, assembly, C and BASIC. The developer can mix and match at will and it all compiles into an executable image.

The Propeller Chip, especially Propler 2, is a literal, embedded playground. Lots of fun.