Hacker News new | ask | show | jobs
by zzo38computer 2369 days ago
There is many kind of assembly language, some for the actual computer hardware, some for VMs, and some used as both.

I have used and sometimes still do use assembly language, including 6502 (specifically, NMOS 6502 without decimal arithmetic, including unofficial opcodes), and a little bit of x86 stuff (although the modern x86 is very messy, I think), but also Z-machine and Glulx. I have also used MIX and MMIX assembly (and may use MMIX more if I would actually make a computer with it). And then some other programs (such as ZZ Zero, which is similar to ZZT) has its own kind of assembly language.

One feature not mentioned is the relative numbered labels such as 1H and 2H available in MIXAL and MMIXAL; you can then use 2F to find the next 2H label forward, or 2B to find the next 2H label backward. My own assemblers for Glulx and ZZ Zero support the similar feature too.

1 comments

He does touch on local labels briefly - he suggests (and I agree) that you can get the same effect, more maintainably, with macros.
Macros are good too, although I think both are useful.