Literals

In Luna literals are defined for binary values and hexadecimal values. For this types following notation can be used:

Binary: 0b - like in C and Assembler (standard), also possible is using &b

Following example demonstrated an 8 bit binary value:

0b10111010

Hexadecimal: 0x - 0x like in C and Assembler (standard), also possible is using &h

Following example demonstrated an 16 bit hexadecimal value:

0x65b7

Note: The standard for the notation of binary or hexadecimal values are in big-endian byte order.