From 8968f471650d25c9df68347644e0e5c0ecdbda6e Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Fri, 8 Dec 2023 11:48:26 +1100 Subject: minor commit --- src/video/interface.h | 15 +++++++-------- src/video/ncurses.c | 17 +++++++---------- 2 files changed, 14 insertions(+), 18 deletions(-) (limited to 'src/video') diff --git a/src/video/interface.h b/src/video/interface.h index dc074b2..16cc965 100644 --- a/src/video/interface.h +++ b/src/video/interface.h @@ -6,17 +6,16 @@ #include "../cpu/core.h" #include -// Common procedure for taking in user input. -byte UserInput(); -// Common way to print processor information. -void PrintInfo(); - -// Initialization procedure for the terminal +// Initialize the video system. void DisplayInit(); -// Exit procedure for the terminal. +// Shut down the video system. void DisplayClose(); -// Deliver an Apple ASCII character to the terminal. +// Display a character on the screen. void DisplayInput(byte n); + + +// Print information on the video system. +void PrintInfo(); diff --git a/src/video/ncurses.c b/src/video/ncurses.c index e9be9b2..3b22231 100644 --- a/src/video/ncurses.c +++ b/src/video/ncurses.c @@ -8,17 +8,14 @@ #include"../cpu/6502.h" -int TermX = 0; -int TermY = 0; +int TermX = 0; +int TermY = 0; WINDOW *AppleWindow; - byte* VRAM; - -int vPosition = 0; - -int vOffset = 0; +int vPosition = 0; +int vOffset = 0; void PrintInfo() @@ -69,11 +66,11 @@ void DisplayInit() mvaddch(i, 0, ' '); mvaddch(i, 41, ' '); } - mvprintw(25, 0, " ~ "); - mvprintw(26, 0, " Alekseis Apple I "); - mvprintw(27, 0, " "); + mvprintw(25, 0, " "); attroff(A_REVERSE); + + // Create seperate Apple screen window. AppleWindow = newwin(24, 40, 1, 1); -- cgit v1.2.3