Mirror of CollapseOS
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

23 行
332B

  1. #include <stdint.h>
  2. #include <stdio.h>
  3. #include "cpu.h"
  4. extern uint8_t RAM[0x100000];
  5. int main(int argc, char *argv[])
  6. {
  7. int i = 0;
  8. int ch = 0;
  9. reset86();
  10. ch = getchar();
  11. while (ch != EOF) {
  12. RAM[i++] = ch;
  13. ch = getchar();
  14. }
  15. printregs();
  16. exec86(1);
  17. printregs();
  18. return 0;
  19. }