AsmParser Class Reference

#include <asmparser.h>

List of all members.

Public Types

enum  Type { Relocatable, Absolute }

Public Member Functions

 AsmParser (const QString &url)
 ~AsmParser ()
bool parse (GpsimDebugger *debugger=0)
QString picID () const
bool containsRadix () const
Type type () const

Protected Attributes

const QString m_url
QString m_picID
bool m_bContainsRadix
Type m_type


Detailed Description

Reads in an assembly file, and extracts useful information from it, such as the PIC ID

Author:
David Saxton

Definition at line 24 of file asmparser.h.


Member Function Documentation

bool AsmParser::parse ( GpsimDebugger debugger = 0  ) 

Read in data from file, return success status.

Parameters:
debugger if this is non-null, then source-line markers read from the assembly file (such as those beginning with ";#CSRC" will be passed to hllDebugger).

Definition at line 30 of file asmparser.cpp.

References GpsimDebugger::associateLine(), m_bContainsRadix, m_picID, m_type, and m_url.

Referenced by TextDocument::convertToPIC(), and ProcessOptions::guessMediaType().

QString AsmParser::picID (  )  const [inline]

Returns the PIC ID

Definition at line 42 of file asmparser.h.

References m_picID.

Referenced by TextDocument::convertToPIC().

bool AsmParser::containsRadix (  )  const [inline]

Returns whether or not the assembly file contained the "set radix" directive

Definition at line 47 of file asmparser.h.

References m_bContainsRadix.

Type AsmParser::type (  )  const [inline]

If the assembly file contains any of several key words that identify it as a relocatable object, then this will return Relocatable.

Definition at line 52 of file asmparser.h.

References m_type.

Referenced by ProcessOptions::guessMediaType().


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:34 2007 for KTechLab by  doxygen 1.5.1