mirror of
https://github.com/jeremysrand/abCalc.git
synced 2024-11-18 21:07:19 +00:00
39 lines
517 B
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);
|
|
}
|