More segment support stuff.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3806 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2007-09-02 19:49:12 +00:00
parent 8db6dcd414
commit a4b43370e7
8 changed files with 92 additions and 26 deletions

View File

@@ -75,7 +75,19 @@ int SegmentDefined (unsigned Start, unsigned End)
}
}
return 0;
}
}
int HaveSegmentChange (unsigned Addr)
/* Return true if the segment change attribute is set for the given address */
{
/* Check the given address */
AddrCheck (Addr);
/* Return the attribute */
return (AttrTab[Addr] & atSegmentChange) != 0;
}
@@ -133,6 +145,18 @@ void MarkAddr (unsigned Addr, attr_t Attr)
attr_t GetAttr (unsigned Addr)
/* Return the attribute for the given address */
{
/* Check the given address */
AddrCheck (Addr);
/* Return the attribute */
return AttrTab[Addr];
}
attr_t GetStyleAttr (unsigned Addr)
/* Return the style attribute for the given address */
{