mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-22 09:30:32 +00:00
Add some noexcept specifications. Just to experiment.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
e40240694f
commit
b640da1910
@ -21,7 +21,7 @@ namespace EightBit {
|
||||
int p = 0;
|
||||
int q = 0;
|
||||
|
||||
opcode_decoded_t() {}
|
||||
opcode_decoded_t() noexcept {}
|
||||
|
||||
opcode_decoded_t(const uint8_t opcode) {
|
||||
x = (opcode & 0b11000000) >> 6; // 0 - 3
|
||||
|
@ -11,7 +11,7 @@ namespace EightBit {
|
||||
static int load(std::ifstream& file, std::vector<uint8_t>& output, int writeOffset = 0, int readOffset = 0, int limit = -1, int maximumSize = -1);
|
||||
static int load(const std::string& path, std::vector<uint8_t>& output, int writeOffset = 0, int readOffset = 0, int limit = -1, int maximumSize = -1);
|
||||
|
||||
Memory(const size_t size = 0)
|
||||
Memory(const size_t size = 0) noexcept
|
||||
: m_bytes(size) {
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
namespace EightBit {
|
||||
class Ram : public Memory {
|
||||
public:
|
||||
Ram(const size_t size = 0)
|
||||
Ram(const size_t size = 0) noexcept
|
||||
: Memory(size) {
|
||||
}
|
||||
|
||||
|
@ -30,8 +30,8 @@ namespace EightBit {
|
||||
#endif
|
||||
};
|
||||
uint16_t word;
|
||||
register16_t() : word(0) {}
|
||||
register16_t(uint16_t w) : word(w) {}
|
||||
register16_t(uint8_t l, uint8_t h) : low(l), high(h) {}
|
||||
register16_t() noexcept : word(0) {}
|
||||
register16_t(uint16_t w) noexcept : word(w) {}
|
||||
register16_t(uint8_t l, uint8_t h) noexcept : low(l), high(h) {}
|
||||
} ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user