From 95368a186a676f0088aa26ea5f6eb53d61fb430a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Tue, 10 Apr 2018 10:23:32 +0200 Subject: [PATCH] Remove leftover attempt at CLI. --- src/rk65c02cli.c | 63 ------------------------------------------------ 1 file changed, 63 deletions(-) delete mode 100644 src/rk65c02cli.c diff --git a/src/rk65c02cli.c b/src/rk65c02cli.c deleted file mode 100644 index 1e24534..0000000 --- a/src/rk65c02cli.c +++ /dev/null @@ -1,63 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include - -#include -#include - -#include "bus.h" -#include "instruction.h" -#include "rk65c02.h" - - -/* -int -main(void) -{ - bus_t b; - - b = bus_init(); - - bus_write_1(&b, 0, OP_INX); - bus_write_1(&b, 1, OP_NOP); - bus_write_1(&b, 2, OP_LDY_IMM); - bus_write_1(&b, 3, 0x1); - bus_write_1(&b, 4, OP_TSB_ZP); - bus_write_1(&b, 5, 0x3); - bus_write_1(&b, 6, OP_JSR); - bus_write_1(&b, 7, 0x09); - bus_write_1(&b, 8, 0x0); - bus_write_1(&b, 9, OP_STP); - - rk6502_start(&b, 0); - - bus_finish(&b); -} -*/ - - -int main() -{ - char* input, shell_prompt[100]; - - rl_bind_key('\t', rl_complete); - - while(true) { - snprintf(shell_prompt, sizeof(shell_prompt), "> "); - - input = readline(shell_prompt); - - if (!input) - break; - - add_history(input); - - free(input); - } - return EXIT_SUCCESS; -} -