PZ80emu  0.1
display.h
Go to the documentation of this file.
1 
7 #ifndef __PZ80emu__display__
8 #define __PZ80emu__display__
9 
10 #include <ncurses.h>
11 #include <stdint.h>
12 #include <stdio.h>
13 
14 #include "z80.h"
15 
16 __BEGIN_DECLS
17 void curses_display_mem(WINDOW *, uint8_t *);
18 void curses_display_registers(WINDOW *, struct z80 *);
19 WINDOW *create_newwin(int, int, int, int);
20 void create_newscreen(int, int);
21 void display_mem(uint8_t *);
22 void display_registers(struct z80 *);
23 void display_bus(struct bus *);
24 __END_DECLS
25 
26 #endif /* defined(__PZ80emu__display__) */
display_registers
void display_registers(struct z80 *)
display the current register state to STDOUT
Definition: display.c:177
z80::sp
word sp
Definition: z80.h:65
CARRY
#define CARRY
bit position of CARRY flag
Definition: z80.h:72
create_newwin
WINDOW * create_newwin(int, int, int, int)
creates a new curses window
Definition: display.c:104
create_newscreen
void create_newscreen(int main_row, int main_col)
creates a new curses screen
Definition: display.c:123
memory
z80 memory class
Definition: memory.h:19
z80::pc
word pc
Definition: z80.h:53
z80::ix
word ix
Definition: z80.h:58
z80::_bc
word _bc
Definition: z80.h:62
ZERO
#define ZERO
bit position of ZERO flag
Definition: z80.h:78
z80::ir
word ir
Definition: z80.h:60
PARITY_OVERFLOW
#define PARITY_OVERFLOW
bit position of OVERFLOW flag
Definition: z80.h:74
z80
Definition: z80.h:51
utils.h
Utility macros.
display_mem
void display_mem(uint8_t *)
display the current memory contents to STDOUT
Definition: display.c:144
HALF_CARRY
#define HALF_CARRY
bit position of HALF CARRY flag
Definition: z80.h:76
z80.h
z80 CPU data structure and functions
SIGN
#define SIGN
bit position of SIGN flag
Definition: z80.h:79
display_mem
void display_mem(uint8_t *memory)
display the current memory contents to STDOUT
Definition: display.c:144
curses_display_mem
void curses_display_mem(WINDOW *win, uint8_t *memory)
display the contents of a block of memory to a curses window
Definition: display.c:24
z80::_af
word _af
Definition: z80.h:61
z80::bc
word bc
Definition: z80.h:55
word::l
uint8_t l
low order byte
Definition: z80.h:31
curses_display_mem
__BEGIN_DECLS void curses_display_mem(WINDOW *, uint8_t *)
display the contents of a block of memory to a curses window
Definition: display.c:24
word::h
uint8_t h
high order byte
Definition: z80.h:32
bus
z80 bus class
Definition: bus.h:15
word::B
struct word::@0 B
Combination of High and Low bytes in correct order for endianness.
bus::data
uint8_t data
Definition: bus.h:19
curses_display_registers
void curses_display_registers(WINDOW *win, struct z80 *cpu)
display the current register state to a curses window
Definition: display.c:58
z80::af
word af
Definition: z80.h:54
bus::address
uint16_t address
Definition: bus.h:20
create_newwin
WINDOW * create_newwin(int height, int width, int starty, int startx)
creates a new curses window
Definition: display.c:104
display.h
z80::_hl
word _hl
Definition: z80.h:64
curses_display_registers
void curses_display_registers(WINDOW *, struct z80 *)
display the current register state to a curses window
Definition: display.c:58
display_registers
void display_registers(struct z80 *cpu)
display the current register state to STDOUT
Definition: display.c:177
create_newscreen
void create_newscreen(int, int)
creates a new curses screen
Definition: display.c:123
word::W
uint16_t W
16-bit pair
Definition: z80.h:22
z80::iy
word iy
Definition: z80.h:59
SUBTRACT
#define SUBTRACT
bit position of SUBTRACT flag
Definition: z80.h:73
z80::de
word de
Definition: z80.h:56
IS_SET
#define IS_SET(val, bit)
Determines if a bit is set or not.
Definition: utils.h:17
z80::hl
word hl
Definition: z80.h:57
z80::_de
word _de
Definition: z80.h:63