Hca.geocities.com/JLABELLE@rogers.com/nsasm/docs/c6320.htmlca.geocities.com/JLABELLE_rogers.com/nsasm/docs/c6320.htmldelayedxmJOKtext/html@'b.HTue, 07 Dec 2004 00:51:33 GMT0Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)en, *mJExamples

Chapter 21. Examples

Table of Contents
dumpcoff sample1
dumpcoff /b /s /t /l main
dumpcoff /e /h main

The Linker example in Chapter 12 is used, except that sym_debug option is used to generate symbolic information for COFF.

The programs were assembled with the following commands:

	C:\COP8\NSASM\EXAMPLES>asmcop.exe sample1.asm /sym_debug
	C:\COP8\NSASM\EXAMPLES>asmcop.exe sample2.asm /sym_debug
	

The programs were then linked as follows:

	C:\COP8\NSASM\EXAMPLES>lncop.exe sample1.obj, sample2.obj
	

The following is the output of DUMPCOFF using various command line options as shown. Note that the link placed files into two different banks. The program signon header is not shown for the examples.

Note: The following examples may change somewhat due to future changes in Assembler, linker, e.g., section names or code generated may change.

dumpcoff sample1

With no options specified the default display is shown below. It consists of:


	File: sample1.cof
	File Header
		Creation Date: Aug 28 13:24:02 1992

	Section: .text
		Paddr: 0x00000000, Vaddr: 0x00000000
		Size of raw data: 0x0000000c