mirror of
https://github.com/cc65/cc65.git
synced 2025-08-11 11:25:08 +00:00
Implementation for the .IFPxx commands was missing
git-svn-id: svn://svn.cc65.org/cc65/trunk@489 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -33,8 +33,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ca65 */
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
#include "expr.h"
|
#include "expr.h"
|
||||||
|
#include "instr.h"
|
||||||
#include "nexttok.h"
|
#include "nexttok.h"
|
||||||
#include "symtab.h"
|
#include "symtab.h"
|
||||||
#include "condasm.h"
|
#include "condasm.h"
|
||||||
@@ -356,12 +358,30 @@ void DoConditionals (void)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case TOK_IFP02:
|
case TOK_IFP02:
|
||||||
|
D = AllocIf (".IFP02", 1);
|
||||||
|
NextTok ();
|
||||||
|
if (IfCond) {
|
||||||
|
SetIfCond (D, GetCPU() == CPU_6502);
|
||||||
|
}
|
||||||
|
IfCond = GetCurrentIfCond ();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TOK_IFP816:
|
case TOK_IFP816:
|
||||||
|
D = AllocIf (".IFP816", 1);
|
||||||
|
NextTok ();
|
||||||
|
if (IfCond) {
|
||||||
|
SetIfCond (D, GetCPU() == CPU_65816);
|
||||||
|
}
|
||||||
|
IfCond = GetCurrentIfCond ();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TOK_IFPC02:
|
case TOK_IFPC02:
|
||||||
|
D = AllocIf (".IFPC02", 1);
|
||||||
|
NextTok ();
|
||||||
|
if (IfCond) {
|
||||||
|
SetIfCond (D, GetCPU() == CPU_65C02);
|
||||||
|
}
|
||||||
|
IfCond = GetCurrentIfCond ();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TOK_IFREF:
|
case TOK_IFREF:
|
||||||
|
Reference in New Issue
Block a user