diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2022-08-11 22:52:30 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2022-08-12 00:33:23 +0200 |
commit | 80a5ffad6e6a2e0bb8faab202e101feee9061a06 (patch) | |
tree | c1a371862afde2b46a3bce712984204d088a6fdc /sdcc-sdas_macro_80_char_overflow.patch | |
parent | 9b81852097e4a8bfde2c09a28783c6d2c7e1e543 (diff) |
WIP: Add some gameboy tooling
Diffstat (limited to 'sdcc-sdas_macro_80_char_overflow.patch')
-rw-r--r-- | sdcc-sdas_macro_80_char_overflow.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/sdcc-sdas_macro_80_char_overflow.patch b/sdcc-sdas_macro_80_char_overflow.patch new file mode 100644 index 0000000..1500a8d --- /dev/null +++ b/sdcc-sdas_macro_80_char_overflow.patch @@ -0,0 +1,50 @@ +diff --git a/sdas/asxxsrc/asxxxx.h b/sdas/asxxsrc/asxxxx.h +index 3c101b0..6c87180 100644 +--- a/sdas/asxxsrc/asxxxx.h ++++ b/sdas/asxxsrc/asxxxx.h +@@ -49,20 +49,22 @@ + * 2-Nov-97 JLH: + * - add jflag for debug control + * - prototypes for DefineNoICE_Line + * 30-Jan-98 JLH: + * - add memory space flags to a_flag for 8051 + * + * 3-Feb-00 KV: + * - add DS80C390 flat mode support. + * 10-Nov-07 borutr: + * - change a_id from [NCPS] to pointer ++ * 00-Sep-21: ++ * - change NCPS to 255 + */ + + /* + * System Include Files + */ + + #include <stdlib.h> + #include <stdio.h> + #include <setjmp.h> + #include <string.h> +@@ -191,21 +193,21 @@ + #define ER_WARNING 1 /* Warning */ + #define ER_ERROR 2 /* Assembly error */ + #define ER_FATAL 3 /* Fatal error */ + + /* + * Assembler definitions. + */ + #define LFTERM '(' /* Left expression delimeter */ + #define RTTERM ')' /* Right expression delimeter */ + +-#define NCPS 80 /* Characters per symbol */ ++#define NCPS 255 /* Characters per symbol */ + #define ASXHUGE 1000 /* A huge number */ + #define NERR 3 /* Errors per line */ + #define NINPUT 1024 /* Input buffer size */ + #define NCODE 128 /* Listing code buffer size */ + #define NTITL 80 /* Title buffer size */ + #define NSBTL 80 /* SubTitle buffer size */ + #define NHASH (1 << 6) /* Buckets in hash table */ + #define HMASK (NHASH - 1) /* Hash mask */ + #define NLPP 60 /* Lines per page */ + #define MAXMCR 20 /* Maximum nesting of macro expansions */ |