Hacker News new | past | comments | ask | show | jobs | submit login

That's not something the Locomotive BASIC of Amstrad or the C64 basic support, seems like at least these two require a literal line number (probably also because how else would `RENUM` work?)



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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: