1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-09 06:29:38 +00:00

Basic support in ca65

This commit is contained in:
James-Adam Renquinha Henri 2019-04-05 00:06:34 -04:00
parent d0c7108dcf
commit 4d1b288e00
4 changed files with 12 additions and 0 deletions

View File

@ -1924,6 +1924,14 @@ static void DoWarning (void)
static void DoWeak (void)
/* Declare a weak symbol */
{
ExportImport (SymGlobal, ADDR_SIZE_DEFAULT, SF_WEAK);
}
static void DoWord (void)
/* Define words */
{
@ -2121,6 +2129,7 @@ static CtrlDesc CtrlCmdTab [] = {
{ ccNone, DoUnion },
{ ccNone, DoUnexpected }, /* .VERSION */
{ ccNone, DoWarning },
{ ccNone, DoWeak },
{ ccNone, DoWord },
{ ccNone, DoUnexpected }, /* .XMATCH */
{ ccNone, DoZeropage },

View File

@ -292,6 +292,7 @@ struct DotKeyword {
{ ".UNION", TOK_UNION },
{ ".VERSION", TOK_VERSION },
{ ".WARNING", TOK_WARNING },
{ ".WEAK", TOK_WEAK },
{ ".WORD", TOK_WORD },
{ ".XMATCH", TOK_XMATCH },
{ ".XOR", TOK_BOOLXOR },

View File

@ -71,6 +71,7 @@ struct HLLDbgSym;
#define SF_VAR 0x0080 /* Variable symbol */
#define SF_FORCED 0x0100 /* Forced import, SF_IMPORT also set */
#define SF_FIXED 0x0200 /* May not be trampoline */
#define SF_WEAK 0x0400 /* Weak symbol */
#define SF_MULTDEF 0x1000 /* Multiply defined symbol */
#define SF_DEFINED 0x2000 /* Defined */
#define SF_REFERENCED 0x4000 /* Referenced */

View File

@ -259,6 +259,7 @@ typedef enum token_t {
TOK_UNION,
TOK_VERSION,
TOK_WARNING,
TOK_WEAK,
TOK_WORD,
TOK_XMATCH,
TOK_ZEROPAGE,