2019-11-13 01:03:51 +00:00
|
|
|
#pragma once
|
|
|
|
#include "asm.h"
|
|
|
|
|
|
|
|
#define CLASS TPsuedoOp
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
P_ORG = 1,
|
|
|
|
P_LST,
|
|
|
|
P_SAV,
|
2019-11-13 04:32:10 +00:00
|
|
|
P_DUM,
|
|
|
|
P_DEND,
|
2019-11-13 14:54:48 +00:00
|
|
|
P_DS,
|
2019-11-13 23:45:39 +00:00
|
|
|
P_PUT,
|
|
|
|
P_USE,
|
2019-11-15 01:04:35 +00:00
|
|
|
P_HEX,
|
2019-11-15 07:35:04 +00:00
|
|
|
P_DATA,
|
2019-11-16 02:30:12 +00:00
|
|
|
P_LUP,
|
2019-11-16 17:27:24 +00:00
|
|
|
P_DO,
|
2019-11-16 19:14:51 +00:00
|
|
|
P_TR,
|
2019-11-18 02:16:39 +00:00
|
|
|
P_ASC,
|
2019-11-19 20:06:08 +00:00
|
|
|
P_ERR,
|
2019-11-21 05:50:00 +00:00
|
|
|
P_MAC,
|
2019-11-22 17:33:24 +00:00
|
|
|
P_CAS,
|
2019-11-13 01:03:51 +00:00
|
|
|
|
|
|
|
P_MAX
|
|
|
|
};
|
|
|
|
|
|
|
|
class CLASS
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CLASS();
|
|
|
|
~CLASS();
|
2019-11-18 14:07:44 +00:00
|
|
|
uint32_t doShift(uint32_t value, uint8_t shift);
|
|
|
|
|
2019-11-13 01:03:51 +00:00
|
|
|
int ProcessOpcode(T65816Asm &a, MerlinLine &line, TSymbol &opinfo);
|
|
|
|
int doLST(T65816Asm &a, MerlinLine &line, TSymbol &opinfo);
|
2019-11-13 04:32:10 +00:00
|
|
|
int doDUM(T65816Asm &a, MerlinLine &line, TSymbol &opinfo);
|
2019-11-13 14:54:48 +00:00
|
|
|
int doDS(T65816Asm &a, MerlinLine &line, TSymbol &opinfo);
|
2019-11-15 01:04:35 +00:00
|
|
|
int doHEX(T65816Asm &a, MerlinLine &line, TSymbol &opinfo);
|
2019-11-15 07:35:04 +00:00
|
|
|
int doDATA(T65816Asm &a, MerlinLine &line, TSymbol &opinfo);
|
2019-11-16 02:30:12 +00:00
|
|
|
int doLUP(T65816Asm &a, MerlinLine &line, TSymbol &opinfo);
|
2019-11-16 19:14:51 +00:00
|
|
|
int doDO(T65816Asm &a, MerlinLine &line, TSymbol &opinfo);
|
|
|
|
int doTR(T65816Asm &a, MerlinLine &line, TSymbol &opinfo);
|
2019-11-18 02:16:39 +00:00
|
|
|
int doASC(T65816Asm &a, MerlinLine &line, TSymbol &opinfo);
|
2019-11-21 05:50:00 +00:00
|
|
|
int doMAC(T65816Asm &a, MerlinLine &line, TSymbol &opinfo);
|
|
|
|
|
2019-11-13 01:03:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#undef CLASS
|