Completed assertions, add auto assertion for jmp (abs) bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@2203 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* ea.h */
|
||||
/* ea.h */
|
||||
/* */
|
||||
/* Effective address parsing for the ca65 macroassembler */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 1998 Ullrich von Bassewitz */
|
||||
/* Wacholderweg 14 */
|
||||
/* D-70597 Stuttgart */
|
||||
/* EMail: uz@musoftware.de */
|
||||
/* (C) 1998-2003 Ullrich von Bassewitz */
|
||||
/* R<>merstrasse 52 */
|
||||
/* D-70794 Filderstadt */
|
||||
/* EMail: uz@cc65.org */
|
||||
/* */
|
||||
/* */
|
||||
/* This software is provided 'as-is', without any expressed or implied */
|
||||
@@ -38,26 +38,36 @@
|
||||
|
||||
|
||||
|
||||
#include "expr.h"
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
/* GetEA result struct */
|
||||
typedef struct EffAddr EffAddr;
|
||||
struct EffAddr {
|
||||
/* First three fields get filled when calling GetEA */
|
||||
unsigned long AddrModeSet; /* Possible addressing modes */
|
||||
struct ExprNode* Expr; /* Expression if any (NULL otherwise) */
|
||||
struct ExprNode* Bank; /* Bank expression if any */
|
||||
|
||||
/* The following fields are used inside instr.c */
|
||||
unsigned AddrMode; /* Actual addressing mode used */
|
||||
unsigned long AddrModeBit; /* Addressing mode as bit mask */
|
||||
unsigned char Opcode; /* Opcode */
|
||||
};
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
void GetEA (unsigned long* AddrMode, ExprNode** Expr, ExprNode** Bank);
|
||||
/* Parse an effective address, return the possible modes in AddrMode, and the
|
||||
* expression involved (if any) in Expr.
|
||||
*/
|
||||
void GetEA (EffAddr* A);
|
||||
/* Parse an effective address, return the result in A */
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user