From 9341076be70d53aa78fae9d010c91bc93c5840b9 Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Thu, 30 Nov 2023 15:14:01 +1100 Subject: Something running now --- src/video/ncurses.c | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to 'src/video') diff --git a/src/video/ncurses.c b/src/video/ncurses.c index 2827ff7..c3357c2 100644 --- a/src/video/ncurses.c +++ b/src/video/ncurses.c @@ -55,23 +55,18 @@ byte UserInput() void PrintInfo() { - move(2, 43); - printf("acc : %x", acc); - move(3, 43); - printf(" X : %x", X ); - move(4, 43); - printf(" Y : %x", Y ); - move(5, 43); - printf(" PC : %x", PC); - move(6, 43); - printf("Flags : %c%c_%c%c%c%c%c", - getFlag(flag_N) ? 'N':'.' , - getFlag(flag_V) ? 'V':'.' , - getFlag(flag_B) ? 'B':'.' , - getFlag(flag_D) ? 'D':'.' , - getFlag(flag_I) ? 'I':'.' , - getFlag(flag_Z) ? 'Z':'.' , - getFlag(flag_C) ? 'C':'.' + mvprintw(2, 43, " acc : %x", acc); + mvprintw(3, 43, " X : %x", X ); + mvprintw(4, 43, " Y : %x", Y ); + mvprintw(5, 43, " PC : %x", PC); + mvprintw(6, 43, "Flags : %c%c_%c%c%c%c%c", + getFlag(flag_N) ? 'N':'.' , + getFlag(flag_V) ? 'V':'.' , + getFlag(flag_B) ? 'B':'.' , + getFlag(flag_D) ? 'D':'.' , + getFlag(flag_I) ? 'I':'.' , + getFlag(flag_Z) ? 'Z':'.' , + getFlag(flag_C) ? 'C':'.' ); refresh(); } -- cgit v1.2.3