?? plx.h
字號:
#ifndef __PLX__H_
#define __PLX__H_
#define MAX_CODENUMBER 2048
#define MAX_STACK (2048*2)
#include <stdio.h>
#include <fstream.h>
#include <string.h>
class plxw
{
public:
plxw();
~plxw();
void debug(char *filePath);
protected:
ifstream InFile;
enum instruction{OPR,LIT,LOD,STO,INT,JMP,JPC,SHO,CAL};
typedef enum instruction fct;
typedef struct _code{ int f;
int l;
int a;
}CODE;
/* 存儲代碼的數組和指標 */
CODE code[MAX_CODENUMBER];
int cx;
/* 虛擬機 */
int s[MAX_STACK]; /* 運行棧 */
int t; /* 運行棧指針 */
CODE i; /* 指令寄存器 */
int p; /* PC寄存器 */
int b; /* 基地址寄存器 */
void fillCode();
void interpret();
int base(int l);
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -