New .PUSHSEG and .POPSEG commands

git-svn-id: svn://svn.cc65.org/cc65/trunk@1671 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2002-11-28 17:42:16 +00:00
parent cf2162f5da
commit 1167d99a9b
9 changed files with 155 additions and 143 deletions

View File

@@ -55,6 +55,14 @@
/* Are we in absolute mode or in relocatable mode? */
extern int RelocMode;
/* Definitions for predefined segments */
SegDef NullSegDef;
SegDef ZeropageSegDef;
SegDef DataSegDef;
SegDef BssSegDef;
SegDef RODataSegDef;
SegDef CodeSegDef;
/*****************************************************************************/
@@ -63,26 +71,11 @@ extern int RelocMode;
void UseCodeSeg (void);
/* Use the code segment */
void UseSeg (const SegDef* D);
/* Use the given segment */
void UseRODataSeg (void);
/* Use the r/o data segment */
void UseDataSeg (void);
/* Use the data segment */
void UseBssSeg (void);
/* Use the BSS segment */
void UseZeropageSeg (void);
/* Use the zero page segment */
void UseNullSeg (void);
/* Use the null segment */
void UseSeg (const char* Name, unsigned SegType);
/* Use the segment with the given name */
const SegDef* GetCurrentSeg (void);
/* Get a pointer to the segment defininition of the current segment */
unsigned GetSegNum (void);
/* Get the number of the current segment */