?? common.h
字號:
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <assert.h>
const STACKSIZE=2047,CXMAX=10000,LEVMAX=100;
typedef enum _OPCOD //操作碼的定義
{
LIT,LIT1,LOD,ILOD,LODA,LODT,LODB,STO,CPYB,JMP,JPC,RED,WRT,CAL,RETP,UDIS,OPAC,ENTP,
ENDP,ANDS,ORS,NOTS,IMOD,MUS,ADD,ADD1,SUB,MULT,IDIV,EQ,NE,LS,LE,GT,GE
} OPCOD;
typedef struct _INSTRUCTION //指令結構定義
{
OPCOD func;
int level;
int address;
} INSTRUCTION;
INSTRUCTION * CODE=NULL; //一個存放INSTRUCTION紀錄的數組
int pc,bp,top;
int oldTop;
INSTRUCTION instruction; //當前被翻譯的指令
int S[STACKSIZE]; //代碼運行需要的棧
int DISPLAY[LEVMAX]; //DISPLAY表
int stop; //判斷是否翻譯結束的標志
int h,hh,hhh; //三個臨時變量
char ch; //臨時變量
int temp=0; //臨時變量
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -