Assertion checks were the wrong way round

git-svn-id: svn://svn.cc65.org/cc65/trunk@2205 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-06-06 21:09:36 +00:00
parent 3853a88127
commit cdedb31199
6 changed files with 61 additions and 61 deletions

View File

@@ -39,7 +39,7 @@
#include <ctype.h>
#include <errno.h>
/* common */
/* common */
#include "assertdefs.h"
#include "bitops.h"
#include "cddefs.h"
@@ -246,7 +246,7 @@ static void DoAddr (void)
{
while (1) {
if (GetCPU() == CPU_65816) {
EmitWord (ForceWordExpr (Expression ()));
EmitWord (GenWordExpr (Expression ()));
} else {
/* Do a range check */
EmitWord (Expression ());
@@ -588,7 +588,7 @@ static void DoDByt (void)
/* Output double bytes */
{
while (1) {
EmitWord (SwapExpr (Expression ()));
EmitWord (GenSwapExpr (Expression ()));
if (Tok != TOK_COMMA) {
break;
} else {
@@ -1242,7 +1242,7 @@ static void DoProc (void)
{
if (Tok == TOK_IDENT) {
/* The new scope has a name */
SymDef (SVal, CurrentPC (), IsZPSeg (), 1);
SymDef (SVal, GenCurrentPC (), IsZPSeg (), 1);
NextTok ();
}
SymEnterLevel ();