summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-11-30 15:14:01 +1100
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-11-30 15:14:01 +1100
commit9341076be70d53aa78fae9d010c91bc93c5840b9 (patch)
treee56a141f67379b4545f9e1436cd10d9a9ebd4a1e /src/video
parentd0f5e175f713a52d76d102780e0b899f3984c416 (diff)
Something running now
Diffstat (limited to 'src/video')
-rw-r--r--src/video/ncurses.c29
1 files changed, 12 insertions, 17 deletions
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();
}