-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexec.h
More file actions
30 lines (25 loc) · 732 Bytes
/
Copy pathexec.h
File metadata and controls
30 lines (25 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _EXEC_H_
#define _EXEC_H_
/*!
* \file exec.h
* \brief Exécution d'une instruction.
*/
#include "machine.h"
//! Décodage et exécution d'une instruction
/*!
* \param pmach la machine/programme en cours d'exécution
* \param instr l'instruction à exécuter
* \return faux après l'exécution de \c HALT ; vrai sinon
*/
bool decode_execute(Machine *pmach, Instruction instr);
//! Trace de l'exécution
/*!
* On écrit l'adresse et l'instruction sous forme lisible.
*
* \param msg le message de trace
* \param pmach la machine en cours d'exécution
* \param instr l'instruction à exécuter
* \param addr son adresse
*/
void trace(const char *msg, Machine *pmach, Instruction instr, unsigned addr);
#endif