PZ80emu  0.1
Functions
display.h File Reference
#include <ncurses.h>
#include <stdint.h>
#include <stdio.h>
#include "z80.h"
Include dependency graph for display.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

__BEGIN_DECLS void curses_display_mem (WINDOW *, uint8_t *)
 display the contents of a block of memory to a curses window More...
 
void curses_display_registers (WINDOW *, struct z80 *)
 display the current register state to a curses window More...
 
WINDOW * create_newwin (int, int, int, int)
 creates a new curses window More...
 
void create_newscreen (int, int)
 creates a new curses screen More...
 
void display_mem (uint8_t *)
 display the current memory contents to STDOUT More...
 
void display_registers (struct z80 *)
 display the current register state to STDOUT More...
 
void display_bus (struct bus *)
 

Detailed Description

Author
Peter H. Ezetta
Date
2015-05-03

Function Documentation

◆ create_newscreen()

void create_newscreen ( int  main_row,
int  main_col 
)

creates a new curses screen

Parameters
main_rowThe starting row for the new screen
main_colThe 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
heightThe height of the window.
widthThe width of the window.
startyThe starting y coordinate for the new window.
startxThe 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
winThe curses window in which to display memory.
memoryA 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
winThe curses window in which to display register state.
cpuA 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
memorypointer 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
cpuA pointer to a z80 cpu struct for which to display registers.