data gen psuedo ops

This commit is contained in:
marketideas 2019-11-15 02:48:58 -08:00
parent 3a515f0970
commit 0579efb523
3 changed files with 16 additions and 11 deletions

View File

@ -1,16 +1,16 @@
#pragma once
// define application options here
#define PAL_APPCLASS TMyCustomApp
#define PAL_APPCLASS TQAsmApp
#define NO_SIGNAL_HANDLING
//#define SERVERAPP
#define ENABLE_SSL
//#define ENABLE_SSL
#define USE_LOGGER
// help text
#define HELP_USAGE "<options> filename"
#define HELP_PURPOSE "a program that does something"
#define HELP_USAGE "<options> <list of files>"
#define HELP_PURPOSE "\nMerlin 16+ Compatible 65816 Development Tool"

View File

@ -13,13 +13,17 @@ PAL_BASEAPP *PAL::appFactory(void)
programOption PAL::appOptions[] =
{
{ "debug", "d", "enable debug info (repeat for more verbosity)", "", false, true},
{ "config", "f", "load configuration data from a <file>", "<file>", false, false},
{ "exec", "x", "execute a command", "<command>", false, false},
//{ "config", "f", "load configuration data from a <file>", " <file>", false, false},
{ "exec", "x", "execute a command [asm, link, reformat]", " <command>", false, false},
{ "", "", "", "", false, false}
};
void CLASS::displayVersion()
{
cerr << "version 1234" << endl << endl;
}
int CLASS::runServerApp(PAL_EVENTMANAGER *em)
{
int res = -1;
@ -68,12 +72,11 @@ int CLASS::runCommandLineApp(void)
std::string startdirectory;
std::string fname;
// only called if SERVERAPP not defined
int res = -1;
startdirectory = Poco::Path::current();
//LOG_DEBUG << "currentdir: " << startdirectory << endl;
if (commandargs.size() == 0)
{
fprintf(stderr, "No files given (--help for help)\n\n");
@ -105,7 +108,7 @@ int CLASS::runCommandLineApp(void)
t->init();
std::string f = path.toString();
t->filename = f;
x = t->processfile(f,fname);
x = t->processfile(f, fname);
if (x == 0)
{
t->process();
@ -136,7 +139,7 @@ int CLASS::runCommandLineApp(void)
t->init();
std::string f = path.toString();
t->filename = f;
x = t->processfile(f,fname);
x = t->processfile(f, fname);
f = t->filename;
if (x == 0)
{

2
qasm.h
View File

@ -15,6 +15,8 @@ protected:
void showerror(int ecode,std::string fname);
virtual int runCommandLineApp(void);
virtual int runServerApp(PAL_EVENTMANAGER *em);
virtual void displayVersion();
public:
};