?? instruction.cpp
字號(hào):
/*
FileName: instruction.cpp
Author: LiWen
Create: 2005-12-20
Last Modified: 2005-12-24
Discription: 代碼表管理模塊
*/
#include "compiler.h"
INSTRUCTION codelist[CXMAX]; //代碼表
char strcode[8][4]={"LIT","LOD","STO","CAL","INT","JMP","JPC","OPR"}; //命令字串,輸出用
int cx; //當(dāng)前代碼
/*=======================================================
函數(shù):transform
參數(shù):PCODE的三個(gè)元素f,l,a
描述:根據(jù)輸入添加的代碼表中
返回:當(dāng)前指針
========================================================*/
int transform(enum instruction f,int l,int a){
codelist[cx].f = f;
codelist[cx].l = l;
codelist[cx].a = a;
return cx++;
}
/*=======================================================
函數(shù):instructioninit
參數(shù):無
描述:代碼模塊初始化
返回:無
========================================================*/
void instructioninit(){
cx = 0;
return;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -