Get the latest tech news
Show HN: Torque – A lightweight meta-assembler for any processor
vides the tools necessary to write programs for any processor architecture. For a quick overview of the language, either read the language overview section of the manual, see this example of a completed program, or skim one of the following hands-on tutorials: For a demonstration of how to write high-level optimising macros in Torque, see: Background Existing assemblers for embedded processors suffer from a number of issues.
Torque is a lightweight meta-assembler that provides the tools necessary to write programs for any processor architecture. Torque is designed around the idea that any assembly language can be emulated with just integers, bit sequences, labels, and sufficiently powerful macros. With Torque, the instruction encoding for a target processor can be defined as a set of macros in the program itself, using templates to specify how values are packed into ranges of bits.
Or read this on Hacker News