?? daima.h
字號:
#ifndef __DAIMA_H
#define __DAIMA_H
#include "yufa.h"
#define CODE_SIZE 200
#define RUN_STACK_SIZE 500 //runtime stack size
enum fct {lit,opr,lod,sto,cal,intint,jmp,jpc};
struct instruction
{
fct f; //fuction code
int l; //level
int a; //displacement addr
};
class CDaima
{
friend class CYufa;
public:
CDaima(){cx=0;}
void Gen(fct f,int l,int a);
void ListCode();
void Interpret();
private:
instruction code[CODE_SIZE];
int cx;
int b; //program stack base address
int s[RUN_STACK_SIZE]; //datastore
private:
int base(int l);
};
#endif // daima.h
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -