summaryrefslogtreecommitdiff
path: root/src/video/ncurses.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/video/ncurses.c')
-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();
}