-/* CPU exec and Console UI update */
-static void
-console_exec(char *Address, char *NumberInst)
-{
- int NbInst = -1; /* -1 is infinity */
- if (strlen(Address) == 0) {
- log_err("Invalid address");
- return;
- }
-
- if (!STREQ(Address, "PC"))
- cpu8051.pc = Ascii2Hex(Address, strlen(Address));
-
- if (NumberInst)
- if (strlen(NumberInst) != 0)
- NbInst = Ascii2Hex(NumberInst, strlen(NumberInst));
-
- InitUnixKB();
-
- log_info("Program executing...");
-
- cpu8051_run(NbInst, kbhit);
-
- if (kbhit()) {
- (void) getch(); /* Flush key */
- log_info("Caught break signal!");
- }
-
- ResetUnixKB();
-}
-