What does $ mean in MIPS assembly?

assembly, mips

Solution

In some assemblers, the '$' means simply that you are using a hex value. on the x86 architecture it usual to write the number with 'h' or if the first character is not a digit, then you have to use a zero in front `28h` or `0afh`. In C you would write `0x28`.

For example on the 6510 (Commodore 64) or M68000 (i.e. Amiga) the '$' character was used for this like '$28'. I'm sure there are other assemblers as well using this notation.

Problem

What does `$` mean in MIPS Assembly language? Take the example: ``` Add #$28,R4,R3 ``` What is the dollar sign in the expression?

Original source

Related problems