⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 code.cpp

📁 小型编译系统的源代码
💻 CPP
字号:
#include "globals.h"
#include "code.h"

/* P-Machine location number for current instruction emission */
int emitLoc = 0;

/* Highest TM location emitted so far
   For use in conjunction with emitSkip,
   emitBackup, and emitRestore */
//static int highEmitLoc = 0;

/* Procedure emitComment prints a comment line 
 * with comment c in the code file
 */
void emitComment(char *c)
{ 
	if (TraceCode) 
		fprintf(code,"; %s\n",c);
}

void emitCode(char *s)
{
	fprintf(code, "%s\n", s);
	emitLoc++;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -