mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
BIT doesn't need to be a macro
This commit is contained in:
parent
e0ff24b42b
commit
98907c9283
@ -16,7 +16,6 @@
|
||||
#include "debugger.h"
|
||||
#include "tlcs90.h"
|
||||
|
||||
enum _e_op { UNKNOWN, NOP, EX, EXX, LD, LDW, LDA, LDI, LDIR, LDD, LDDR, CPI, CPIR, CPD, CPDR, PUSH, POP, JP, JR, CALL, CALLR, RET, RETI, HALT, DI, EI, SWI, DAA, CPL, NEG, LDAR, RCF, SCF, CCF, TSET, BIT, SET, RES, INC, DEC, INCX, DECX, INCW, DECW, ADD, ADC, SUB, SBC, AND, XOR, OR, CP, RLC, RRC, RL, RR, SLA, SRA, SLL, SRL, RLD, RRD, DJNZ, MUL, DIV };
|
||||
static const char *const op_names[] = { "??", "nop", "ex", "exx", "ld", "ldw", "lda", "ldi", "ldir", "ldd", "lddr", "cpi", "cpir", "cpd", "cpdr", "push", "pop", "jp", "jr", "call", "callr", "ret", "reti", "halt", "di", "ei", "swi", "daa", "cpl", "neg", "ldar", "rcf", "scf", "ccf", "tset", "bit", "set", "res", "inc", "dec", "incx", "decx", "incw", "decw", "add", "adc", "sub", "sbc", "and", "xor", "or", "cp", "rlc", "rrc", "rl", "rr", "sla", "sra", "sll", "srl", "rld", "rrd", "djnz", "mul", "div" };
|
||||
|
||||
ALLOW_SAVE_TYPE(tlcs90_device::e_mode); // allow save_item on a non-fundamental type
|
||||
|
@ -34,6 +34,8 @@ public:
|
||||
TIMER_CALLBACK_MEMBER( t90_timer4_callback );
|
||||
|
||||
protected:
|
||||
enum _e_op { UNKNOWN, NOP, EX, EXX, LD, LDW, LDA, LDI, LDIR, LDD, LDDR, CPI, CPIR, CPD, CPDR, PUSH, POP, JP, JR, CALL, CALLR, RET, RETI, HALT, DI, EI, SWI, DAA, CPL, NEG, LDAR, RCF, SCF, CCF, TSET, BIT, SET, RES, INC, DEC, INCX, DECX, INCW, DECW, ADD, ADC, SUB, SBC, AND, XOR, OR, CP, RLC, RRC, RL, RR, SLA, SRA, SLL, SRL, RLD, RRD, DJNZ, MUL, DIV };
|
||||
|
||||
// device-level overrides
|
||||
virtual void device_start() override;
|
||||
virtual void device_reset() override;
|
||||
|
@ -242,7 +242,7 @@ inline TYPE operator--(TYPE &value, int) { TYPE const old(value); --value; retur
|
||||
|
||||
|
||||
// useful functions to deal with bit shuffling encryptions
|
||||
#define BIT(x, n) (((x) >> (n)) & 1)
|
||||
template <typename T, typename U> constexpr T BIT(T x, U n) { return (x >> n) & T(1); }
|
||||
|
||||
template <typename T, typename U> constexpr T bitswap(T val, U b)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user