Update global, add word and dword
This commit is contained in:
parent
e8880935ac
commit
a50bda3703
12
src/global.h
12
src/global.h
@ -5,8 +5,8 @@
|
|||||||
********************************************************************************
|
********************************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GLOBAL_H
|
#ifndef __GLOBAL__
|
||||||
#define GLOBAL_H
|
#define __GLOBAL__
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
// Number of General Purpose Registers.
|
// Number of General Purpose Registers.
|
||||||
@ -18,7 +18,11 @@
|
|||||||
// Length of the instruction in bits.
|
// Length of the instruction in bits.
|
||||||
#define INSTRUCTION_SIZE 32
|
#define INSTRUCTION_SIZE 32
|
||||||
|
|
||||||
// Define the word type to be a 64-bit unsigned integer.
|
// A byte is an 8-bit unsigned integer in this architecture.
|
||||||
typedef uint64_t word;
|
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
|
#endif
|
||||||
Loading…
Reference in New Issue
Block a user