Control Register type checking

The following examples use two instructions and are only concerned with the control register fields:

Each unresolved control register field may be an expression comprised of one or more terms. The assembler checks only the first term as follows:

Figure 79 shows an example of Control Register checking, with a warning message about an incompatible symbol type, and an informational message about a symbol not assigned an assembler type due to the existence of an EQU statement with CR in the source code.

Figure 79. Control Register type checking with CR activated
00000000 B7EC A00C               0000000C     30          LCTL  14,12,12(10)
00000004 B7EC A00C               0000000C     31          LCTL  C14,C12,12(R10)
00000008 B72C A00C               0000000C     32          LCTL  A2,C12,12(R10)
** ASMA323W Symbol A2 has incompatible type with control register field
0000000C B7E1 A00C               0000000C     33          LCTL  C14,CON1,12(R10)
** ASMA324I Symbol CON1 may have incompatible type with control register field
00000010 EBEC A00C 002F          0000000C     34          LCTLG C14,C12,12(R10)
                                              35 *
                        0000000C              36 C12      EQU   12,,,,CR
                        0000000E              37 C14      EQU   14,,,,CR
                                              38 *
                        0000000A              39 R10      EQU   10,,,,GR
                        00000002              40 A2       EQU   2,,,,AR
                        00000001              41 CON1     EQU   1

Figure 80 shows an example of Control Register checking, with a warning message about an incompatible symbol type, and tolerance of symbols not assigned an assembler type due to the lack of an EQU statement with CR in the source code.

Figure 80. Control Register type checking with CR inactive
00000000 B7EC A00C               0000000C     30          LCTL  14,12,12(10)
00000004 B7EC A00C               0000000C     31          LCTL  C14,C12,12(R10)
00000008 B72C A00C               0000000C     32          LCTL  A2,C12,12(R10)
** ASMA323W Symbol A2 has incompatible type with control register field
0000000C B7E1 A00C               0000000C     33          LCTL  C14,CON1,12(R10)
00000010 EBEC A00C 002F          0000000C     34          LCTLG C14,C12,12(R10)
                                              35 *
                        0000000C              36 C12      EQU   12
                        0000000E              37 C14      EQU   14
                                              38 *
                        0000000A              39 R10      EQU   10,,,,GR
                        00000002              40 A2       EQU   2,,,,AR
                        00000001              41 CON1     EQU   1

[ Top of Page | Previous Page | Next Page | Contents | Index ]