diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-17 16:20:49 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-17 16:20:49 +0100 |
| commit | 39cf602b1d7a057960832c5bad28748c86038ae9 (patch) | |
| tree | 42feb5238db7f638bf12902d6fd597904ecfb200 /CompilerKit | |
| parent | 7a3ed768de6e4debf42d7b8ed81e325577f76606 (diff) | |
64x0: edit assembler to use unsigned 8 bit integer instead of signed 8 bit integer;
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'CompilerKit')
| -rw-r--r-- | CompilerKit/AsmKit/Arch/64k.hpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/CompilerKit/AsmKit/Arch/64k.hpp b/CompilerKit/AsmKit/Arch/64k.hpp index ec2f413..ee74774 100644 --- a/CompilerKit/AsmKit/Arch/64k.hpp +++ b/CompilerKit/AsmKit/Arch/64k.hpp @@ -25,12 +25,15 @@ #define kAsmJump 0x04 #define kAsmNoArgs 0x05 +typedef char e64k_character_t; +typedef uint8_t e64k_num_t; + struct CpuCode64x0 { - const char fName[16]; - char fOpcode; - char fFunct3; - char fFunct7; + const e64k_character_t fName[16]; + e64k_num_t fOpcode; + e64k_num_t fFunct3; + e64k_num_t fFunct7; }; inline std::vector<CpuCode64x0> kOpcodes64x0 = { |
