Skip to content

Commit

Permalink
Create lvm_assembler.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Leviathan authored and Leviathan committed Oct 21, 2015
1 parent e964f5d commit cff276c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Lsy_Lvm/lvm/lvm_assembler.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
//
// assembler.h
// Lmachine
//
// Created by leviathan on 15/8/21.
// Copyright (c) 2015年 leviathan. All rights reserved.
//

#pragma once
#ifndef __Lmachine__assembler__
#define __Lmachine__assembler__

#include <iostream>
#include "lvm_global.h"
using namespace std;


class Assembler
{
public:
Assembler();
int searchsymbol(string symbolname,int sign);
int count_addrlabel(int index);
void assemblerrun();
tokentype lexer(string &token,int index);
void buildsymbol(); //build symbol table
string int2string(int num);
int searchcmd(string token);
int searchreg(string token);
int getopcode(string token);
};
#endif /* defined(__Lmachine__assembler__) */

0 comments on commit cff276c

Please sign in to comment.