code.cpp
来自「小型编译系统的源代码」· C++ 代码 · 共 26 行
CPP
26 行
#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 + =
减小字号Ctrl + -
显示快捷键?