06.02.2013 Views

C166/ST10 Cross-Assembler, Linker/Locator, Utilities ... - Tasking

C166/ST10 Cross-Assembler, Linker/Locator, Utilities ... - Tasking

C166/ST10 Cross-Assembler, Linker/Locator, Utilities ... - Tasking

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4−6<br />

LANGUAGE<br />

Example:<br />

The following example is legal:<br />

CODE1 SECTION CODE ; Begin CODE1<br />

.<br />

.<br />

.<br />

DATA1 SECTION DATA ; Begin DATA1, stop<br />

. ; assembling CODE1<br />

.<br />

.<br />

DATA1 ENDS ; End DATA1, continue<br />

. ; assembling CODE1<br />

.<br />

.<br />

CODE1 ENDS<br />

Chapter 4<br />

The assembler treats the CODE1 section separately from the DATA1<br />

section. The contents of the DATA1 section are not contained within the<br />

CODE1 section. The following example produces an error because the<br />

SECTION/ENDS pair must match as shown in the example above.<br />

CODE1 SECTION CODE ; Begin CODE1<br />

.<br />

.<br />

.<br />

DATA1 SECTION DATA ; Begin DATA1, stop<br />

. ; assembling CODE1<br />

.<br />

.<br />

CODE1 ENDS ; Error!! Cannot close<br />

. ; CODE1 before closing<br />

. ; DATA1<br />

.<br />

DATA1 ENDS<br />

Up to ten nested SECTION/ENDS pairs are supported.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!