diff --git a/InstructionSets/ARM/Status.hpp b/InstructionSets/ARM/Registers.hpp similarity index 95% rename from InstructionSets/ARM/Status.hpp rename to InstructionSets/ARM/Registers.hpp index de320232d..d893b8b36 100644 --- a/InstructionSets/ARM/Status.hpp +++ b/InstructionSets/ARM/Registers.hpp @@ -35,7 +35,9 @@ enum class Mode { Supervisor = 0b11, }; -struct Status { +/// Combines the ARM registers and status flags into a single whole, given that the architecture +/// doesn't have the same degree of separation as others. +struct Registers { public: /// Sets the N and Z flags according to the value of @c result. void set_nz(uint32_t value) { diff --git a/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj b/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj index b7ea5cdac..f0200c9dc 100644 --- a/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj +++ b/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj @@ -1335,7 +1335,7 @@ 4B1EDB431E39A0AC009D6819 /* chip.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = chip.png; sourceTree = ""; }; 4B2005402B804AA300420C5C /* OperationMapper.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = OperationMapper.hpp; sourceTree = ""; }; 4B2005422B804D6400420C5C /* ARMDecoderTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ARMDecoderTests.mm; sourceTree = ""; }; - 4B2005462B8BD7A500420C5C /* Status.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Status.hpp; sourceTree = ""; }; + 4B2005462B8BD7A500420C5C /* Registers.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Registers.hpp; sourceTree = ""; }; 4B2130E0273A7A0A008A77B4 /* Audio.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Audio.cpp; sourceTree = ""; }; 4B2130E1273A7A0A008A77B4 /* Audio.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Audio.hpp; sourceTree = ""; }; 4B228CD424D773B30077EF25 /* CSScanTarget.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CSScanTarget.mm; sourceTree = ""; }; @@ -2760,7 +2760,7 @@ isa = PBXGroup; children = ( 4B2005402B804AA300420C5C /* OperationMapper.hpp */, - 4B2005462B8BD7A500420C5C /* Status.hpp */, + 4B2005462B8BD7A500420C5C /* Registers.hpp */, ); path = ARM; sourceTree = ""; diff --git a/OSBindings/Mac/Clock SignalTests/ARMDecoderTests.mm b/OSBindings/Mac/Clock SignalTests/ARMDecoderTests.mm index 0aa3ed40a..5b9d6c0bc 100644 --- a/OSBindings/Mac/Clock SignalTests/ARMDecoderTests.mm +++ b/OSBindings/Mac/Clock SignalTests/ARMDecoderTests.mm @@ -9,7 +9,7 @@ #import #include "../../../InstructionSets/ARM/OperationMapper.hpp" -#include "../../../InstructionSets/ARM/Status.hpp" +#include "../../../InstructionSets/ARM/Registers.hpp" #include "../../../Numeric/Carry.hpp" using namespace InstructionSet::ARM; @@ -270,7 +270,7 @@ struct Scheduler { void unknown(uint32_t) {} private: - Status status; + Registers status; uint32_t registers_[16]; // TODO: register swaps with mode. };