From a50bda3703efd666c22d26bf2e72e05a62f8bc30 Mon Sep 17 00:00:00 2001 From: sBubshait Date: Thu, 30 May 2024 13:20:58 +0100 Subject: [PATCH] Update global, add word and dword --- src/global.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/global.h b/src/global.h index e827bcb..138e11a 100644 --- a/src/global.h +++ b/src/global.h @@ -5,8 +5,8 @@ ******************************************************************************** */ -#ifndef GLOBAL_H -#define GLOBAL_H +#ifndef __GLOBAL__ +#define __GLOBAL__ #include // 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 \ No newline at end of file