mirror of
https://github.com/markdavidlong/AppleSAWS.git
synced 2024-06-25 03:29:29 +00:00
441a3c41b9
Also added some well-known Monitor/Applesoft addresses to disassembler
29 lines
693 B
C++
29 lines
693 B
C++
#ifndef GENERICFILE_H
|
|
#define GENERICFILE_H
|
|
|
|
#include <QByteArray>
|
|
#include <QString>
|
|
|
|
class GenericFile
|
|
{
|
|
public:
|
|
GenericFile(QByteArray data = QByteArray());
|
|
virtual ~GenericFile() { }
|
|
virtual void setData(QByteArray data);
|
|
|
|
virtual QByteArray data() { return m_data; }
|
|
void setFilename(QString filename) { m_filename = filename; }
|
|
QString filename() const { return m_filename; }
|
|
virtual void setAddress(quint16 location) { m_address = location; }
|
|
virtual quint16 address() { return m_address; }
|
|
virtual QByteArray rawData() { return m_data; }
|
|
|
|
protected:
|
|
QByteArray m_data;
|
|
QString m_filename;
|
|
quint16 m_address;
|
|
|
|
};
|
|
|
|
#endif // GENERICFILE_H
|