Update global, add word and dword

This commit is contained in:
sBubshait 2024-05-30 13:20:58 +01:00
parent e8880935ac
commit a50bda3703

View File

@ -5,8 +5,8 @@
********************************************************************************
*/
#ifndef GLOBAL_H
#define GLOBAL_H
#ifndef __GLOBAL__
#define __GLOBAL__
#include <stdint.h>
// Number of General Purpose Registers.
@ -18,7 +18,11 @@
// Length of the instruction in bits.
#define INSTRUCTION_SIZE 32
// Define the word type to be a 64-bit unsigned integer.
typedef uint64_t word;
// A byte is an 8-bit unsigned integer in this architecture.
typedef uint8_t byte;
// A word is a 32-bit unsigned integer in this architecture.
typedef uint32_t word;
// Double word is a 64-bit unsigned integer.
typedef uint64_t dword;
#endif