Chapter 8 Writing Source Statements

Extended C language format

 

 

 

Current default radix

 

Radix

 

 

 

 

 

Binary

Octal

 

Decimal

Hexadecimal

 

 

 

 

 

 

Binary

--

--

 

0B101

--

 

 

 

 

 

 

Octal

--

--

 

0765

--

 

 

 

 

 

 

Decimal

--

--

 

789

--

 

 

 

 

 

 

Hexadecimal

--

--

 

0XDEF

--

 

 

 

 

 

 

 

Coding rules:

 

 

 

 

 

 

Binary

Start with '0' (zero) and letter 'B' (or 'b'), followed by binary digits.

 

Octal

Start with '0' (zero), followed by octal digits.

 

 

Decimal

Code decimal number as is.

 

 

 

 

Hexadecimal

Start with '0' and letter 'X' (or 'x'), followed by hexadecimal digits.

Intel format

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Current default radix

 

 

Radix

 

 

 

 

 

 

Binary

Octal

 

Decimal

Hexadecimal

 

 

 

 

 

 

 

 

Binary

101B

101B

 

101B

101B

 

101

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Octal

567O

567O

 

567O

567O

 

567Q

567Q

 

567Q

567Q

 

 

 

567

 

 

 

 

 

 

 

 

 

 

 

Decimal

789D

789D

 

789D

789D

 

 

 

 

789

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hexadecimal

0defH

0defH

 

0defH

0defH

 

 

 

 

 

0def

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Coding rules:

 

 

 

 

 

 

Binary

Follow binary digits with letter 'B' (or 'b'). When the default is binary, the suffix 'B'

 

 

may be omitted.

 

 

 

 

 

Octal

Follow octal digits with letter 'O' (or 'o') or 'Q' (or 'q'). When the default is octal, the

 

 

suffix 'O' or 'Q' may be omitted.

 

 

Decimal

Follow decimal digits with letter 'D' (or 'd'). When the default is decimal, the suffix

 

 

'D' may be omitted.

 

 

 

 

 

Hexadecimal

Follow hexadecimal digits with letter 'H' (or 'h'). If the digits begin with a letter A –

 

 

F, they must be prefixed with the digit '0' (zero). When the default is hexadecimal,

 

 

the suffix 'H' may be omitted.

 

 

 

Numbers 131

Page 143
Image 143
Panasonic MN1030 user manual Extended C language format, Intel format, Coding rules