2016-01-23 03:51:29 -08:00
|
|
|
#ifndef OPERAND_STUFF_H_
|
|
|
|
#define OPERAND_STUFF_H_
|
|
|
|
|
|
|
|
#include "macrossTypes.h"
|
|
|
|
|
|
|
|
#if TARGET_CPU == CPU_6502
|
|
|
|
operandType *buildOperand(operandKindType kindOfOperand, anyOldThing *arg);
|
|
|
|
#elif TARGET_CPU == CPU_68000
|
|
|
|
operandType *buildOperand(operandKindType kindOfOperand, int arg1, int arg2, int arg3, int arg4);
|
|
|
|
#else
|
|
|
|
#error Unknown or undefined processor type
|
|
|
|
#endif
|
|
|
|
|
|
|
|
operandListType *duplicateOperandForFixup(operandListType *operand, bool isSpecialFunctionOperand);
|
|
|
|
void freeOperand(operandType *operand);
|
2016-01-23 18:38:39 -08:00
|
|
|
void expandOperand(operandKindType addressMode, char *buffer);
|
2016-01-23 03:51:29 -08:00
|
|
|
valueType *evaluateOperand(operandType *operand);
|
|
|
|
conditionType invertConditionCode(conditionType conditionCode);
|
2016-01-23 18:38:39 -08:00
|
|
|
bool shouldParenthesize(operandType *operand);
|
2016-01-23 03:51:29 -08:00
|
|
|
|
|
|
|
#endif
|