📄 run.c
字号:
#include <stdio.h>#include <stdlib.h>#include <stdbool.h>#include "run.h"#include "decode.h"void run(){ int tick=0; hlt=false; /* decode.h */ /* enable interrupt */ cpu.flags |= FLAG_I; while(!hlt) { hlt = decode(); tick++; } printf("\n==================================================\n"); printf("run(): return value: al=%d\n",*greg8_addr(0)); printf("run(): cpu ticks %d times!\n",tick);}void shutDown(){ if(cpu.ram) free(cpu.ram);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -