mirror of
https://github.com/marketideas/qasm.git
synced 2024-06-02 08:41:27 +00:00
data gen psuedo ops
This commit is contained in:
parent
3a515f0970
commit
0579efb523
8
config.h
8
config.h
|
@ -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"
|
||||
|
||||
|
||||
|
|
17
qasm.cpp
17
qasm.cpp
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user