Working
git-svn-id: svn://svn.cc65.org/cc65/trunk@338 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -41,7 +41,10 @@
|
||||
#include "xsprintf.h"
|
||||
|
||||
/* da65 */
|
||||
#include "code.h"
|
||||
#include "error.h"
|
||||
#include "global.h"
|
||||
#include "output.h"
|
||||
#include "attrtab.h"
|
||||
|
||||
|
||||
@@ -175,3 +178,40 @@ unsigned char GetStyle (unsigned Addr)
|
||||
|
||||
|
||||
|
||||
static void DefineConst (unsigned Addr)
|
||||
/* Define an address constant */
|
||||
{
|
||||
Output ("%s", SymTab [Addr]);
|
||||
Indent (AIndent);
|
||||
Output ("= $%04X", Addr);
|
||||
LineFeed ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
void DefOutOfRangeLabels (void)
|
||||
/* Output any labels that are out of the loaded code range */
|
||||
{
|
||||
unsigned long Addr;
|
||||
|
||||
SeparatorLine ();
|
||||
|
||||
/* Low range */
|
||||
for (Addr = 0; Addr < CodeStart; ++Addr) {
|
||||
if (SymTab [Addr]) {
|
||||
DefineConst (Addr);
|
||||
}
|
||||
}
|
||||
|
||||
/* High range */
|
||||
for (Addr = CodeEnd+1; Addr < 0x10000; ++Addr) {
|
||||
if (SymTab [Addr]) {
|
||||
DefineConst (Addr);
|
||||
}
|
||||
}
|
||||
|
||||
SeparatorLine ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user