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

Go to the source code of this file.

Functions

struct mem_byte_tmem_byte_new ()
 
void mem_byte_create (struct mem_byte_t *, const size_byte_buffer)
 
void mem_byte_destroy (struct mem_byte_t *)
 

Function Documentation

◆ mem_byte_create()

void mem_byte_create ( struct mem_byte_t mem_byte,
const size_byte_buffer  size 
)
24{
25 mem_byte->buf_b = (byte_t *) calloc(size, sizeof(byte_t));
26 mem_byte->size_b = size;
27
28 mem_byte->read_byte = __byte_read_b;
29 mem_byte->write_byte = __byte_write_b;
30 mem_byte->read_word = __word_read_b;
31 mem_byte->write_word = __word_write_b;
32}
void __word_write_b(void *, address_word_t, word_t)
Definition buf_byte.c:44
word_t __word_read_b(void *, address_word_t)
Definition buf_byte.c:55
void __byte_write_b(void *, address_byte_t, byte_t)
Definition buf_byte.c:66
byte_t __byte_read_b(void *, address_byte_t)
Definition buf_byte.c:74
read_byte_t read_byte
Definition mem_byte_p.h:11
read_word_t read_word
Definition mem_byte_p.h:13
write_word_t write_word
Definition mem_byte_p.h:14
write_byte_t write_byte
Definition mem_byte_p.h:12
size_byte_buffer size_b
Definition mem_byte_p.h:9
byte_t * buf_b
Definition mem_byte_p.h:8
unsigned char byte_t
Definition types.h:6
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mem_byte_destroy()

void mem_byte_destroy ( struct mem_byte_t mem_byte)
36{
37 free(mem_byte->buf_b);
38}
Here is the caller graph for this function:

◆ mem_byte_new()

struct mem_byte_t * mem_byte_new ( )
18{
19 return (mem_byte_t *) malloc(sizeof(mem_byte_t));
20}
Definition mem_byte_p.h:7
Here is the caller graph for this function: