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

Go to the source code of this file.

Functions

struct command_tcommand_new ()
 
void command_create (struct command_t **)
 
void command_destroy (struct command_t **)
 
void print_command (address_word_t, word_t, byte_t *)
 

Function Documentation

◆ command_create()

void command_create ( struct command_t **  commands)
33{
34 for (int i = 0; i < commands_list; i++) {
35 commands[i] = (command_t *) malloc(sizeof(command_t));
36 if (commands[i] != NULL) {
37 *commands[i] = template_commands[i];
38 }
39 }
40}
command_t template_commands[]
Definition command.c:10
byte_t commands_list
Definition command.c:21
Definition command_p.h:5
Here is the caller graph for this function:

◆ command_destroy()

void command_destroy ( struct command_t **  commands)
44{
45 for (int i = 0; i < commands_list; i++) {
46 free(commands[i]);
47 }
48}
Here is the caller graph for this function:

◆ command_new()

struct command_t * command_new ( )
25{
26 return (command_t **) malloc(
28 * sizeof(command_t *)); // Выделение паамяти для обЪекта command_t
29}
Here is the caller graph for this function:

◆ print_command()

void print_command ( address_word_t  addr,
word_t  word_command,
byte_t name_command 
)
52{
53 PRINT_RESULT("%06o %06o : %s", addr, word_command, name_command);
54}
#define PRINT_RESULT(fmt,...)
Definition logger.h:34
Here is the caller graph for this function: