Hacker News new | ask | show | jobs
by Findecanor 876 days ago
> I love the idea that someone could get to this page and not already know that!

Might be worth noting because it is different in other assembly languages. In e.g. 6502 and MC680x0 asm, you'd first prefix with # to differentiate between an address (to load from and/or store to) and an "immediate" constant number, and then $ to denote hexadecimal. In x86 assembly (Intel style), you instead suffix the number with the letter h.

> rd = add rs1, rs2

There are assembly languages for a few architectures that did/have that form or a similar one. Itanium assembly had instead the form:

    add r1 = r2, r3