/***************************************************************************
mipsimdoc.h - description
-------------------
begin : mié nov 22 06:36:10 CET 2000
copyright : (C) 2000 by Jose Maria Requena Lopez
email : jmrequena@larural.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef MIPSIMDOC_H
#define MIPSIMDOC_H
#include <qobject.h>
#include <qstring.h>
#define MAX_FILE_LENGTH 2112
class MipsimDoc : public QObject
{
Q_OBJECT
public:
MipsimDoc(); //Constructor
~MipsimDoc(); //Destructor
int loadDoc(const QString &filename); //Carga el documento .asm
bool isModified() const; //Cierto si se ha modificado el documento
char *getAsm(); //Devuelve un array con el codigo ensamblador
char *getBin(); //Devuelve un array con el codigo binario
char *getMemFile(); //Devuelve el nombre del archivo de memoria
bool readyDoc; //Cierto si el documento esta preparado
signals:
void documentChanged(); //Manejador del evento Documento alterado
protected:
bool modified; //Cierto si el archivo ha sido modificado
QString asmfile; //El archivo ensamblador
QString binfile; //El archivo con el codigo binario
QString memfile; //El archivo con el contenido de memoria
public:
char bincode[MAX_FILE_LENGTH]; //El codigo binario
char asmcode[MAX_FILE_LENGTH]; //El codigo ensamblador
};
#endif
| Generated by: root@localhost.localdomain on Sat Dec 2 02:26:22 200. |