Files
BlitzNext/compiler/assem_x86/assem_x86.h
T

38 lines
730 B
C++
Raw Normal View History

2014-01-31 08:23:00 +13:00
#ifndef ASSEM_X86_H
#define ASSEM_X86_H
#include "../assem.h"
#include <string>
#include <vector>
#include <iostream>
#include "insts.h"
#include "operand.h"
using namespace std;
class Assem_x86 : public Assem{
public:
Assem_x86( istream &in,Module *mod );
virtual void assemble();
private:
void align( int n );
void emit( int n );
void emitw( int n );
void emitd( int n );
void emitImm( const string &s,int size );
void emitImm( const Operand &o,int size );
void r_reloc( const string &dest );
void a_reloc( const string &dest );
void assemDir( const string &name,const string &op );
void assemInst( const string &name,const string &lhs,const string &rhs );
void assemLine( const string &line );
};
#endif