#include <ncurses.h>
#include <stdint.h>
#include <stdio.h>
#include "z80.h"
Go to the source code of this file.
- Author
- Peter H. Ezetta
- Date
- 2015-05-03
◆ create_newscreen()
void create_newscreen |
( |
int |
main_row, |
|
|
int |
main_col |
|
) |
| |
creates a new curses screen
- Parameters
-
main_row | The starting row for the new screen |
main_col | The starting column for the new screen |
◆ create_newwin()
WINDOW* create_newwin |
( |
int |
height, |
|
|
int |
width, |
|
|
int |
starty, |
|
|
int |
startx |
|
) |
| |
creates a new curses window
- Parameters
-
height | The height of the window. |
width | The width of the window. |
starty | The starting y coordinate for the new window. |
startx | The starting x coordinate for the new window. |
- Returns
- curses WINDOW
- Todo:
- check return value of box()
- Todo:
- check return value of wrefresh()
◆ curses_display_mem()
__BEGIN_DECLS void curses_display_mem |
( |
WINDOW * |
win, |
|
|
uint8_t * |
memory |
|
) |
| |
display the contents of a block of memory to a curses window
- Parameters
-
win | The curses window in which to display memory. |
memory | A pointer to the block of memory to display |
- Todo:
- check mvwprintw() return status
- Todo:
- check wprintw() return statuses
- Todo:
- check wrefresh() return status
◆ curses_display_registers()
void curses_display_registers |
( |
WINDOW * |
win, |
|
|
struct z80 * |
cpu |
|
) |
| |
display the current register state to a curses window
- Parameters
-
win | The curses window in which to display register state. |
cpu | A pointer to a z80 cpu struct for which to display registers. |
- Todo:
- check return status of mvwprintw()
- Todo:
- check return status of wrefresh()
◆ display_mem()
void display_mem |
( |
uint8_t * |
memory | ) |
|
display the current memory contents to STDOUT
- Parameters
-
memory | pointer to a memory for which to display registers. |
- Todo:
- check return of printf()
◆ display_registers()
void display_registers |
( |
struct z80 * |
cpu | ) |
|
display the current register state to STDOUT
- Parameters
-
cpu | A pointer to a z80 cpu struct for which to display registers. |