{"by":"benbridle","descendants":31,"id":43698801,"kids":[43701760,43700755,43702739,43703136,43702260,43801153,43701785,43711819,43700836,43700974,43703840,43702073,43702268,43712679,43701066],"score":79,"text":"Hello everyone, I&#x27;ve been working on this project for the past few months.<p>Torque is a meta-assembler: instead of having an instruction set built into the assembler, you use macros to build up a small language that decribes an instruction set and then you use that to write your program. It&#x27;s designed to work for any microcontroller&#x2F;processor architecture, you build from the bit level upwards so there aren&#x27;t any assumptions around word widths, instruction formats, or endianness.<p>I created Torque initially to write programs for a PIC microcontroller, after running into difficulties with the official assembler. I&#x27;ve also used it to write programs for the Z80 processor inside an old TRS-80 computer.<p>Let me know if you try it out or have any questions!","time":1744753605,"title":"Show HN: Torque – A lightweight meta-assembler for any processor","type":"story","url":"https://benbridle.com/projects/torque.html"}