EMULATOR_PDP_11
STEPIC Учебный проект на 'С', эмулятор PDP_11 в стиле ООП
Loading...
Searching...
No Matches
device_io.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct dev_io_tdev_io_new ()
 
void dev_io_create (struct dev_io_t *)
 
void dev_io_destroy (struct dev_io_t *)
 
void dev_io_load_data (struct pdp_11_t *, struct dev_io_t *, byte_t *)
 
void dev_io_mem_dump (struct pdp_11_t *, address_word_t, word_t)
 

Function Documentation

◆ dev_io_create()

void dev_io_create ( struct dev_io_t device_io)
20{
22}
byte_t g_default_device
Definition device_io.c:9
byte_t default_device
Definition device_io_p.h:10
Here is the caller graph for this function:

◆ dev_io_destroy()

void dev_io_destroy ( struct dev_io_t device_io)
26{
27 device_io->default_device = 0;
28 device_io->load_data = load_data_term;
29 return;
30}
void load_data_term(struct pdp_11_t *, byte_t *)
load_data_t load_data
Definition device_io_p.h:11
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dev_io_load_data()

void dev_io_load_data ( struct pdp_11_t pdp,
struct dev_io_t device_io,
byte_t filename 
)
34{
35 if (filename) {
36 device_io->load_data = load_data_file;
37 } else {
38 device_io->load_data = load_data_term;
39 }
40 device_io->load_data((struct pdp_11_t *) pdp, (byte_t *) filename);
41}
void load_data_file(struct pdp_11_t *, byte_t *)
Definition dev_files_io.c:12
Definition pdp_11_p.h:4
unsigned char byte_t
Definition types.h:6
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dev_io_mem_dump()

void dev_io_mem_dump ( struct pdp_11_t pdp,
address_word_t  addr,
word_t  size 
)
44{
45 for (word_t ind = 0x0000; ind < size; ind++) {
46 word_t ch = w_read(pdp, addr + ind);
47 fprintf(stdout, "%06o: %06o %04hx\r\n", (addr | ind++), ch, ch);
48 }
49 fprintf(stdout, "\r\n\n");
50}
word_t w_read(struct pdp_11_t *, const address_word_t)
Читает слово (16 бит) из памяти PDP-11.
Definition pdp_11.c:118
unsigned short int word_t
Definition types.h:7
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dev_io_new()

struct dev_io_t * dev_io_new ( )
13{
14 return (dev_io_t *) malloc(
15 sizeof(dev_io_t)); // Выделение паамяти для обЪекта dev_io_t
16}
Definition device_io_p.h:9
Here is the caller graph for this function: