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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A−18<br />

A.OUT<br />

Appendix A<br />

/*<br />

* Allocation information is generated in a<br />

* S_SEG record. the value field contains the attributes<br />

* SA_PAG, SA_INP, SA_BTA, SA_UNT and SA_BLK.<br />

* An S_USE record contains the attributes<br />

* SA_OV0, SA_OV1, SA_OV2 and SA_OV3.<br />

*/<br />

#define SA_PAG 0x0001 /* page boundary attribute */<br />

#define SA_INP 0x0002 /* inpage attribute */<br />

#define SA_BTA 0x0004 /* bitaddressable attribute */<br />

#define SA_UNT 0x0008 /* unit attribute */<br />

#define SA_BLK 0x0010 /* inblock attribute */<br />

#define SA_SHT 0x1000 /* short attribute */<br />

#define SA_ROM 0x2000 /* romdata attribute */<br />

#define SA_ATT (SA_PAG|SA_INP|SA_BTA|SA_UNT|SA_BLK|SA_SHT|SA_ROM<br />

)<br />

#define SA_ASG 0x0020 /* absolute allocation */<br />

#define SA_RSG 0x0040 /* relative allocation */<br />

#define SA_MASK 0x007f /* allocation type mask */<br />

#define SA_OV0 0x0100 /* overlay bank 0 attribute */<br />

#define SA_OV1 0x0200 /* overlay bank 1 attribute */<br />

#define SA_OV2 0x0400 /* overlay bank 2 attribute */<br />

#define SA_OV3 0x0800 /* overlay bank 3 attribute */<br />

#define SA_OVX (SA_OV0|SA_OV1|SA_OV2|SA_OV3)<br />

/* <strong>C166</strong> */<br />

#define SA_WOR 0x0000 /* word alignment (default) */<br />

#define SA_BYT 0x0002 /* byte alignment */<br />

#define SA_SEG 0x0003 /* segment alignmemt */<br />

#define SA_PCA 0x0005 /* PEC−addressable − word alignment */<br />

#define SA_DBW 0x0006 /* double word alignment */<br />

#define SA_IRA 0x0007 /* IRAM addressable − word alignment */<br />

#define SA_PRV 0x0000 /* private section (default) */<br />

#define SA_PUB 0x0010 /* public section */<br />

#define SA_COM 0x0030 /* common section */<br />

#define SA_SSK 0x0040 /* system stack section */<br />

#define SA_USK 0x0050 /* user stack section */<br />

#define SA_GLB 0x0060 /* global section */<br />

#define SA_GUS 0x0070 /* global user stack section */

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

Saved successfully!

Ooh no, something went wrong!