diff options
author | 2019-01-11 13:58:09 +0100 | |
---|---|---|
committer | 2019-01-12 12:51:22 +0100 | |
commit | e0b485582e2c9298613336c57c1085230feead87 (patch) | |
tree | 5443af99d5d9af91ae42eebf93988cc5db6212d8 /src/devices/cpu/unsp/unsp.h | |
parent | 42d1a6d6e51334d074d25b7acdfd2f1827686568 (diff) |
unsp: Macro removal cleanup, nw
Diffstat (limited to 'src/devices/cpu/unsp/unsp.h')
-rw-r--r-- | src/devices/cpu/unsp/unsp.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/devices/cpu/unsp/unsp.h b/src/devices/cpu/unsp/unsp.h index f54cf04ac57..bdcc8170157 100644 --- a/src/devices/cpu/unsp/unsp.h +++ b/src/devices/cpu/unsp/unsp.h @@ -94,6 +94,18 @@ protected: virtual std::unique_ptr<util::disasm_interface> create_disassembler() override; private: + enum + { + REG_SP = 0, + REG_R1, + REG_R2, + REG_R3, + REG_R4, + REG_BP, + REG_SR, + REG_PC + }; + void add_lpc(const int32_t offset); inline void execute_one(const uint16_t op); @@ -122,7 +134,7 @@ private: inline uint16_t read16(uint32_t address); inline void write16(uint32_t address, uint16_t data); inline void update_nz(uint32_t value); - inline void update_sc(uint32_t value, uint16_t r0, uint16_t r1); + inline void update_nzsc(uint32_t value, uint16_t r0, uint16_t r1); inline void push(uint16_t value, uint16_t *reg); inline uint16_t pop(uint16_t *reg); inline void trigger_fiq(); |