abCalc/ops/abCOpRcws.c

39 lines
517 B
C

/*
abCOpRcws.c
By: Jeremy Rand
*/
#include <stdio.h>
#include "abCStack.h"
#include "abCMode.h"
#include "expr/abCExpr.h"
#include "expr/abCExpReal.h"
#include "ops/abCOp.h"
#include "ops/abCOpRcws.h"
#define OP_NAME "RCWS"
static void rcwsExecute(void);
void abCalcOpRcwsInit(void)
{
abCalcOpRegister(OP_NAME, rcwsExecute);
}
void rcwsExecute(void)
{
abCalcExpr result;
abCalcExprRealSet(&result, (abCalcRealType)abCalcModeGetIntWidth());
abCalcStackExprPush(&result);
}