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−14<br />

LANGUAGE<br />

4.5.5 PAGE EXTEND AND SEGMENT EXTEND<br />

INSTRUCTIONS<br />

Chapter 4<br />

The instructions EXTP, EXTPR and EXTSR cause the assembler to change<br />

checks on the operands in the extend block. The page extend instructions<br />

cause the processor to use the page number supplied with the page<br />

extend instruction instead of the page number in a DPP register. The<br />

segment extend instructions cause the processor to use the segment<br />

number supplied with the segment extend instruction instead of<br />

addressing via the page number in a DPP register.<br />

Because the DPP registers are not used for addressing in a page extend or<br />

segment extend block, a DPP number in bit 14 and 15 of an operand is<br />

not allowed. So, each operand (label or expression) which expects a DPP<br />

prefix outside a page extend or segment extend block, should not have a<br />

DPP prefix or a DPP assumption (ASSUME directive) inside a page extend<br />

block. If a DPP prefix or DPP assumption is used in a page extend or<br />

segment extend block, the assembler issues a warning. This warning is not<br />

issued if the POF operator is used for such an operand in a page extend<br />

block or if the POF or SOF operator is used for such an operand in a<br />

segment extend block. The POF or SOF operator should be the first<br />

operator of an expression.<br />

Example:<br />

EXTP #PAG labx, #1 ; extend page<br />

MOV R0, labx ; labx is NOT assumed: ok<br />

EXTERN DPP0:labe:WORD<br />

EXTP #PAG labe, #2 ; extend page<br />

MOV R0, labe ; labe has DPP prefix:<br />

; warning!<br />

MOV R0, POF labe ; POF overrides DPP: ok<br />

The extend page and extend segment instructions can only be used in the<br />

SEGMENTED and NONSEGMENTED/SMALL memory model.

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

Saved successfully!

Ooh no, something went wrong!