From: cuz Date: Tue, 28 Nov 2000 20:55:12 +0000 (+0000) Subject: Implementation for the .IFPxx commands was missing X-Git-Tag: V2.12.0~3047 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0adf3945b7da77b74c981f58d103f485dfe7bc13;p=cc65 Implementation for the .IFPxx commands was missing git-svn-id: svn://svn.cc65.org/cc65/trunk@489 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/condasm.c b/src/ca65/condasm.c index 77fdc0758..5d6fbe157 100644 --- a/src/ca65/condasm.c +++ b/src/ca65/condasm.c @@ -33,8 +33,10 @@ +/* ca65 */ #include "error.h" #include "expr.h" +#include "instr.h" #include "nexttok.h" #include "symtab.h" #include "condasm.h" @@ -308,7 +310,7 @@ void DoConditionals (void) break; case TOK_IFNBLANK: - D = AllocIf (".IFNBLANK", 1); + D = AllocIf (".IFNBLANK", 1); NextTok (); if (IfCond) { SetIfCond (D, Tok != TOK_SEP); @@ -351,17 +353,35 @@ void DoConditionals (void) SetIfCond (D, !SymIsRef (SVal)); NextTok (); } - } + } IfCond = GetCurrentIfCond (); break; case TOK_IFP02: + D = AllocIf (".IFP02", 1); + NextTok (); + if (IfCond) { + SetIfCond (D, GetCPU() == CPU_6502); + } + IfCond = GetCurrentIfCond (); break; case TOK_IFP816: + D = AllocIf (".IFP816", 1); + NextTok (); + if (IfCond) { + SetIfCond (D, GetCPU() == CPU_65816); + } + IfCond = GetCurrentIfCond (); break; case TOK_IFPC02: + D = AllocIf (".IFPC02", 1); + NextTok (); + if (IfCond) { + SetIfCond (D, GetCPU() == CPU_65C02); + } + IfCond = GetCurrentIfCond (); break; case TOK_IFREF: