mirror of
https://github.com/cc65/cc65.git
synced 2025-04-13 22:37:12 +00:00
Added SegTypeToStr
git-svn-id: svn://svn.cc65.org/cc65/trunk@2439 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
f4e5baa444
commit
3604512985
@ -80,3 +80,16 @@ SegDef* DupSegDef (const SegDef* Def)
|
||||
|
||||
|
||||
|
||||
const char* SetTypeToStr (unsigned char Type)
|
||||
/* Map a segment type into a string */
|
||||
{
|
||||
switch (Type) {
|
||||
case SEGTYPE_ABS: return "abs";
|
||||
case SEGTYPE_ZP: return "zp";
|
||||
case SEGTYPE_FAR: return "far";
|
||||
default: return "unknown";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -77,6 +77,9 @@ void FreeSegDef (SegDef* D);
|
||||
SegDef* DupSegDef (const SegDef* D);
|
||||
/* Duplicate a segment definition and return it */
|
||||
|
||||
const char* SetTypeToStr (unsigned char Type);
|
||||
/* Map a segment type into a string */
|
||||
|
||||
|
||||
|
||||
/* End of segdefs.h */
|
||||
|
Loading…
x
Reference in New Issue
Block a user