.chip

Name

.chip --  specifies the member of the COP8 family

Syntax

.chip string

Description

The .CHIP directive specifies the member of the COP8 family. Valid string arguments are the chip name with or without leading "COP"; ANYCOP is a special generic chip name which permits a common instruction subset of all chips to be assembled.

Only one .chip directive is allowed and must appear before any code.

Example

		.chip 820	; specify 820
		.chip COP888cg	; specify 888cg
		.chip ANYCOP	; specify instruction subset
	

Note: The .chip directive informs the assembler as to instruction set and ROM/RAM ranges. Appropriate error checking is done. The chip name is also passed to linker who provides final range checking. See Appendix B for valid chip names and default ranges.

Note that the chip control will override any .chip directive.

The linker disallows linking of object modules or libraries with conflicting chip types except that type ANYCOP will link with any other type.