Increased the file count to 16 bits when written to the object file.

Moved the input file table to a separate module and added an AddFile()
function to add files to this table.
Removed the 8 bit limit for the file number in several places (the file
number is still 8 bits in the file position structure).
Added a pseudo instruction .dbg that will be used to add debug info from
high level code to the assembler source.
Added a subkey "file" to the .dbg command that allows to add a file to the
file table that is later written to the object file.


git-svn-id: svn://svn.cc65.org/cc65/trunk@258 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-08-01 21:36:45 +00:00
parent 6b3b938945
commit 51543fddb0
13 changed files with 422 additions and 87 deletions

View File

@@ -1,8 +1,8 @@
/*****************************************************************************/
/* */
/* error.c */
/* error.c */
/* */
/* Error handling for the ca65 macroassembler */
/* Error handling for the ca65 macroassembler */
/* */
/* */
/* */
@@ -36,7 +36,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
/* ca65 */
#include "filetab.h"
#include "nexttok.h"
#include "error.h"
@@ -180,7 +182,7 @@ void ErrorMsg (const FilePos* Pos, unsigned ErrNum, va_list ap)
"Conditional assembly branch was never closed",
"Lexical level was not terminated correctly",
"Segment attribute mismatch",
"CPU not supported",
"CPU not supported",
"Counter underflow",
"Undefined label",
"Open `%s<>",