Search code examples
assemblynotation

What does 018H and 0cH stand for in assembly? Specifically the "cH" and "0" "h" pre/post-fixes


I/n the below snippet, what does the 018H mean (specifically the 0 and H), and what does the cH mean?

_i DD 018H
_s1 DW 0cH

I get that what it's essentially doing is defining a variable, but I can't seem to find anywhere what those specifically mean/stand for.

On that note, if anyone has a resource, such as a reference, where terminology like that can be found that would be very helpful as well, as I am unable to find anything good online.


Solution

  • It means the literal is in hexadecimal.

    So 18h is 16 + 8 = 24 in decimal, and 0ch is 12 in decimal.

    The notation used is often a platform and/or operating system convention, so tools generally use what is conventionally used for the target.