]> git.sur5r.net Git - cc65/blobdiff - src/da65/attrtab.h
Started to add support for segments.
[cc65] / src / da65 / attrtab.h
index 2abe26576f5cf5f63b9c1ec8bcb0b9636d34dc2a..23413abed09969e36e36cd6e0bbeedea63755234 100644 (file)
@@ -69,7 +69,10 @@ typedef enum attr_t {
     atLabelDefined  = 0x0100,   /* True if we defined the label */
 
     atStyleMask     = 0x000F,  /* Output style */
-    atLabelMask     = 0x00F0   /* Label information */
+    atLabelMask     = 0x00F0,   /* Label information */
+
+    /* Segment */
+    atSegment       = 0x0100,   /* Code is in a segment */
 } attr_t;
 
 
@@ -83,6 +86,9 @@ typedef enum attr_t {
 void AddrCheck (unsigned Addr);
 /* Check if the given address has a valid range */
 
+int SegmentDefined (unsigned Start, unsigned End);
+/* Return true if the atSegment bit is set somewhere in the given range */
+
 unsigned GetGranularity (attr_t Style);
 /* Get the granularity for the given style */