Chapter 9 Writing Machine Language Instructions and Directive StatementsWriting Directive Statements 1659.4.9 radixSyntaxlabel operation operandradix expressionDefault settingsRadix 10 (decimal).Functional descriptionThis directive specifies the radix that will be used by default. The Cross-Assembler provides threecoding formats for numbers.• Extended C language format• Intel format• Matsushita formatThe format is selected with the notation directive. Refer to the description of the notation directive.The default is extended C language format.The radix directive specifies the default radix for numbers in these coding formats by the expression inthe operand. Select one from radix 2 (binary), radix 8 (octal), radix 10 (decimal), and radix 16(hexadecimal).NOTE: In extended C language format, the default radix cannot be specified by the radixdirective. The default is fixed as radix 10 (decimal), and it cannot be changed toanother radixOperand coding rulesThe expression coded in the operand must result in the attribute abs (absolute). Refer to section 8.7.4,"Expression Attributes", regarding attributes of expressions.The calculated result of the expression coded in the operand must be either 2, 8, 10, or 16. The radix ofthe expression in the operand is always 10 (decimal), regardless of the current default radix. If theexpression results in a number that does not specify a radix, the assembler will generate an error andignore this directive.Usage exampleBelow is an example use of the radix directive.radix 16radix BINARY