mirror of
https://github.com/holub/mame
synced 2025-07-03 09:06:08 +03:00
rename functions with upper case names to lower case to avoid #define collisions (nw)
This commit is contained in:
parent
b8f4843e1e
commit
6b04d984cc
File diff suppressed because it is too large
Load Diff
@ -17,9 +17,6 @@
|
|||||||
|
|
||||||
#include "emu.h"
|
#include "emu.h"
|
||||||
|
|
||||||
#pragma push_macro("BIT")
|
|
||||||
#undef BIT
|
|
||||||
|
|
||||||
#define LAZY_FLAGS 0
|
#define LAZY_FLAGS 0
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
@ -182,143 +179,143 @@ protected:
|
|||||||
|
|
||||||
PROTOTYPES(op);
|
PROTOTYPES(op);
|
||||||
|
|
||||||
UINT32 TRANSLATED(UINT16 addr);
|
UINT32 translated(UINT16 addr);
|
||||||
void H6280_CYCLES(int cyc);
|
void h6280_cycles(int cyc);
|
||||||
void SET_NZ(UINT8 n);
|
void set_nz(UINT8 n);
|
||||||
void CLEAR_T();
|
void clear_t();
|
||||||
void DO_INTERRUPT(UINT16 vector);
|
void do_interrupt(UINT16 vector);
|
||||||
void CHECK_AND_TAKE_IRQ_LINES();
|
void check_and_take_irq_lines();
|
||||||
void CHECK_IRQ_LINES();
|
void check_irq_lines();
|
||||||
void CHECK_VDC_VCE_PENALTY(UINT16 addr);
|
void check_vdc_vce_penalty(UINT16 addr);
|
||||||
void BRA(bool cond);
|
void bra(bool cond);
|
||||||
void EA_ZPG();
|
void ea_zpg();
|
||||||
void EA_TFLG();
|
void ea_tflg();
|
||||||
void EA_ZPX();
|
void ea_zpx();
|
||||||
void EA_ZPY();
|
void ea_zpy();
|
||||||
void EA_ABS();
|
void ea_abs();
|
||||||
void EA_ABX();
|
void ea_abx();
|
||||||
void EA_ABY();
|
void ea_aby();
|
||||||
void EA_ZPI();
|
void ea_zpi();
|
||||||
void EA_IDX();
|
void ea_idx();
|
||||||
void EA_IDY();
|
void ea_idy();
|
||||||
void EA_IND();
|
void ea_ind();
|
||||||
void EA_IAX();
|
void ea_iax();
|
||||||
UINT8 RD_IMM();
|
UINT8 rd_imm();
|
||||||
UINT8 RD_ZPG();
|
UINT8 rd_zpg();
|
||||||
UINT8 RD_ZPX();
|
UINT8 rd_zpx();
|
||||||
UINT8 RD_ZPY();
|
UINT8 rd_zpy();
|
||||||
UINT8 RD_ABS();
|
UINT8 rd_abs();
|
||||||
UINT8 RD_ABX();
|
UINT8 rd_abx();
|
||||||
UINT8 RD_ABY();
|
UINT8 rd_aby();
|
||||||
UINT8 RD_ZPI();
|
UINT8 rd_zpi();
|
||||||
UINT8 RD_IDX();
|
UINT8 rd_idx();
|
||||||
UINT8 RD_IDY();
|
UINT8 rd_idy();
|
||||||
UINT8 RD_TFL();
|
UINT8 rd_tfl();
|
||||||
void WR_ZPG(UINT8 tmp);
|
void wr_zpg(UINT8 tmp);
|
||||||
void WR_ZPX(UINT8 tmp);
|
void wr_zpx(UINT8 tmp);
|
||||||
void WR_ZPY(UINT8 tmp);
|
void wr_zpy(UINT8 tmp);
|
||||||
void WR_ABS(UINT8 tmp);
|
void wr_abs(UINT8 tmp);
|
||||||
void WR_ABX(UINT8 tmp);
|
void wr_abx(UINT8 tmp);
|
||||||
void WR_ABY(UINT8 tmp);
|
void wr_aby(UINT8 tmp);
|
||||||
void WR_ZPI(UINT8 tmp);
|
void wr_zpi(UINT8 tmp);
|
||||||
void WR_IDX(UINT8 tmp);
|
void wr_idx(UINT8 tmp);
|
||||||
void WR_IDY(UINT8 tmp);
|
void wr_idy(UINT8 tmp);
|
||||||
void WB_EA(UINT8 tmp);
|
void wb_ea(UINT8 tmp);
|
||||||
void WB_EAZ(UINT8 tmp);
|
void wb_eaz(UINT8 tmp);
|
||||||
void COMPOSE_P(UINT8 SET, UINT8 CLR);
|
void compose_p(UINT8 set, UINT8 clr);
|
||||||
void TADC(UINT8 tmp);
|
void tadc(UINT8 tmp);
|
||||||
void ADC(UINT8 tmp);
|
void adc(UINT8 tmp);
|
||||||
void TAND(UINT8 tmp);
|
void tand(UINT8 tmp);
|
||||||
void AND(UINT8 tmp);
|
void and_a(UINT8 tmp);
|
||||||
UINT8 ASL(UINT8 tmp);
|
UINT8 asl(UINT8 tmp);
|
||||||
void BBR(int bit, UINT8 tmp);
|
void bbr(int bit, UINT8 tmp);
|
||||||
void BBS(int bit, UINT8 tmp);
|
void bbs(int bit, UINT8 tmp);
|
||||||
void BCC();
|
void bcc();
|
||||||
void BCS();
|
void bcs();
|
||||||
void BEQ();
|
void beq();
|
||||||
void BIT(UINT8 tmp);
|
void bit(UINT8 tmp);
|
||||||
void BMI();
|
void bmi();
|
||||||
void BNE();
|
void bne();
|
||||||
void BPL();
|
void bpl();
|
||||||
void BRK();
|
void brk();
|
||||||
void BSR();
|
void bsr();
|
||||||
void BVC();
|
void bvc();
|
||||||
void BVS();
|
void bvs();
|
||||||
void CLA();
|
void cla();
|
||||||
void CLC();
|
void clc();
|
||||||
void CLD();
|
void cld();
|
||||||
void CLI();
|
void cli();
|
||||||
void CLV();
|
void clv();
|
||||||
void CLX();
|
void clx();
|
||||||
void CLY();
|
void cly();
|
||||||
void CMP(UINT8 tmp);
|
void cmp(UINT8 tmp);
|
||||||
void CPX(UINT8 tmp);
|
void cpx(UINT8 tmp);
|
||||||
void CPY(UINT8 tmp);
|
void cpy(UINT8 tmp);
|
||||||
UINT8 DEC(UINT8 tmp);
|
UINT8 dec(UINT8 tmp);
|
||||||
void DEX();
|
void dex();
|
||||||
void DEY();
|
void dey();
|
||||||
void TEOR(UINT8 tmp);
|
void teor(UINT8 tmp);
|
||||||
void EOR(UINT8 tmp);
|
void eor(UINT8 tmp);
|
||||||
UINT8 INC(UINT8 tmp);
|
UINT8 inc(UINT8 tmp);
|
||||||
void INX();
|
void inx();
|
||||||
void INY();
|
void iny();
|
||||||
void JMP();
|
void jmp();
|
||||||
void JSR();
|
void jsr();
|
||||||
void LDA(UINT8 tmp);
|
void lda(UINT8 tmp);
|
||||||
void LDX(UINT8 tmp);
|
void ldx(UINT8 tmp);
|
||||||
void LDY(UINT8 tmp);
|
void ldy(UINT8 tmp);
|
||||||
UINT8 LSR(UINT8 tmp);
|
UINT8 lsr(UINT8 tmp);
|
||||||
void NOP();
|
void nop();
|
||||||
void TORA(UINT8 tmp);
|
void tora(UINT8 tmp);
|
||||||
void ORA(UINT8 tmp);
|
void ora(UINT8 tmp);
|
||||||
void PHA();
|
void pha();
|
||||||
void PHP();
|
void php();
|
||||||
void PHX();
|
void phx();
|
||||||
void PHY();
|
void phy();
|
||||||
void PLA();
|
void pla();
|
||||||
void PLP();
|
void plp();
|
||||||
void PLX();
|
void plx();
|
||||||
void PLY();
|
void ply();
|
||||||
UINT8 RMB(int bit, UINT8 tmp);
|
UINT8 rmb(int bit, UINT8 tmp);
|
||||||
UINT8 ROL(UINT8 tmp);
|
UINT8 rol(UINT8 tmp);
|
||||||
UINT8 ROR(UINT8 tmp);
|
UINT8 ror(UINT8 tmp);
|
||||||
void RTI();
|
void rti();
|
||||||
void RTS();
|
void rts();
|
||||||
void SAX();
|
void sax();
|
||||||
void SAY();
|
void say();
|
||||||
void TSBC(UINT8 tmp);
|
void tsbc(UINT8 tmp);
|
||||||
void SBC(UINT8 tmp);
|
void sbc(UINT8 tmp);
|
||||||
void SEC();
|
void sec();
|
||||||
void SED();
|
void sed();
|
||||||
void SEI();
|
void sei();
|
||||||
void SET();
|
void set();
|
||||||
UINT8 SMB(int bit, UINT8 tmp);
|
UINT8 smb(int bit, UINT8 tmp);
|
||||||
void ST0(UINT8 tmp);
|
void st0(UINT8 tmp);
|
||||||
void ST1(UINT8 tmp);
|
void st1(UINT8 tmp);
|
||||||
void ST2(UINT8 tmp);
|
void st2(UINT8 tmp);
|
||||||
UINT8 STA();
|
UINT8 sta();
|
||||||
UINT8 STX();
|
UINT8 stx();
|
||||||
UINT8 STY();
|
UINT8 sty();
|
||||||
UINT8 STZ();
|
UINT8 stz();
|
||||||
void SXY();
|
void sxy();
|
||||||
void TAI();
|
void tai();
|
||||||
void TAM(UINT8 tmp);
|
void tam(UINT8 tmp);
|
||||||
void TAX();
|
void tax();
|
||||||
void TAY();
|
void tay();
|
||||||
void TDD();
|
void tdd();
|
||||||
void TIA();
|
void tia();
|
||||||
void TII();
|
void tii();
|
||||||
void TIN();
|
void tin();
|
||||||
void TMA(UINT8 tmp);
|
void tma(UINT8 tmp);
|
||||||
UINT8 TRB(UINT8 tmp);
|
UINT8 trb(UINT8 tmp);
|
||||||
UINT8 TSB(UINT8 tmp);
|
UINT8 tsb(UINT8 tmp);
|
||||||
void TSX();
|
void tsx();
|
||||||
void TST(UINT8 imm, UINT8 tmp);
|
void tst(UINT8 imm, UINT8 tmp);
|
||||||
void TXA();
|
void txa();
|
||||||
void TXS();
|
void txs();
|
||||||
void TYA();
|
void tya();
|
||||||
void CSH();
|
void csh();
|
||||||
void CSL();
|
void csl();
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
@ -375,6 +372,4 @@ protected:
|
|||||||
|
|
||||||
extern const device_type H6280;
|
extern const device_type H6280;
|
||||||
|
|
||||||
#pragma pop_macro("BIT")
|
|
||||||
|
|
||||||
#endif /* __H6280_H__ */
|
#endif /* __H6280_H__ */
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -3,9 +3,6 @@
|
|||||||
#ifndef __Z80_H__
|
#ifndef __Z80_H__
|
||||||
#define __Z80_H__
|
#define __Z80_H__
|
||||||
|
|
||||||
#pragma push_macro("BIT")
|
|
||||||
#undef BIT
|
|
||||||
|
|
||||||
#include "z80daisy.h"
|
#include "z80daisy.h"
|
||||||
|
|
||||||
enum
|
enum
|
||||||
@ -145,90 +142,90 @@ protected:
|
|||||||
PROTOTYPES(fd);
|
PROTOTYPES(fd);
|
||||||
PROTOTYPES(xycb);
|
PROTOTYPES(xycb);
|
||||||
|
|
||||||
void ENTER_HALT();
|
void halt();
|
||||||
void LEAVE_HALT();
|
void leave_halt();
|
||||||
UINT8 IN(UINT16 port);
|
UINT8 in(UINT16 port);
|
||||||
void OUT(UINT16 port, UINT8 value);
|
void out(UINT16 port, UINT8 value);
|
||||||
UINT8 RM(UINT16 addr);
|
UINT8 rm(UINT16 addr);
|
||||||
void RM16(UINT16 addr, PAIR &r);
|
void rm16(UINT16 addr, PAIR &r);
|
||||||
void WM(UINT16 addr, UINT8 value);
|
void wm(UINT16 addr, UINT8 value);
|
||||||
void WM16(UINT16 addr, PAIR &r);
|
void wm16(UINT16 addr, PAIR &r);
|
||||||
UINT8 ROP();
|
UINT8 rop();
|
||||||
UINT8 ARG();
|
UINT8 arg();
|
||||||
UINT16 ARG16();
|
UINT16 arg16();
|
||||||
void EAX();
|
void eax();
|
||||||
void EAY();
|
void eay();
|
||||||
void POP(PAIR &r);
|
void pop(PAIR &r);
|
||||||
void PUSH(PAIR &r);
|
void push(PAIR &r);
|
||||||
void JP(void);
|
void jp(void);
|
||||||
void JP_COND(bool cond);
|
void jp_cond(bool cond);
|
||||||
void JR();
|
void jr();
|
||||||
void JR_COND(bool cond, UINT8 opcode);
|
void jr_cond(bool cond, UINT8 opcode);
|
||||||
void CALL();
|
void call();
|
||||||
void CALL_COND(bool cond, UINT8 opcode);
|
void call_cond(bool cond, UINT8 opcode);
|
||||||
void RET_COND(bool cond, UINT8 opcode);
|
void ret_cond(bool cond, UINT8 opcode);
|
||||||
void RETN();
|
void retn();
|
||||||
void RETI();
|
void reti();
|
||||||
void LD_R_A();
|
void ld_r_a();
|
||||||
void LD_A_R();
|
void ld_a_r();
|
||||||
void LD_I_A();
|
void ld_i_a();
|
||||||
void LD_A_I();
|
void ld_a_i();
|
||||||
void RST(UINT16 addr);
|
void rst(UINT16 addr);
|
||||||
UINT8 INC(UINT8 value);
|
UINT8 inc(UINT8 value);
|
||||||
UINT8 DEC(UINT8 value);
|
UINT8 dec(UINT8 value);
|
||||||
void RLCA();
|
void rlca();
|
||||||
void RRCA();
|
void rrca();
|
||||||
void RLA();
|
void rla();
|
||||||
void RRA();
|
void rra();
|
||||||
void RRD();
|
void rrd();
|
||||||
void RLD();
|
void rld();
|
||||||
void ADD(UINT8 value);
|
void add_a(UINT8 value);
|
||||||
void ADC(UINT8 value);
|
void adc_a(UINT8 value);
|
||||||
void SUB(UINT8 value);
|
void sub(UINT8 value);
|
||||||
void SBC(UINT8 value);
|
void sbc_a(UINT8 value);
|
||||||
void NEG();
|
void neg();
|
||||||
void DAA();
|
void daa();
|
||||||
void AND(UINT8 value);
|
void and_a(UINT8 value);
|
||||||
void OR(UINT8 value);
|
void or_a(UINT8 value);
|
||||||
void XOR(UINT8 value);
|
void xor_a(UINT8 value);
|
||||||
void CP(UINT8 value);
|
void cp(UINT8 value);
|
||||||
void EX_AF();
|
void ex_af();
|
||||||
void EX_DE_HL();
|
void ex_de_hl();
|
||||||
void EXX();
|
void exx();
|
||||||
void EXSP(PAIR &r);
|
void ex_sp(PAIR &r);
|
||||||
void ADD16(PAIR &dr, PAIR &sr);
|
void add16(PAIR &dr, PAIR &sr);
|
||||||
void ADC16(PAIR &r);
|
void adc_hl(PAIR &r);
|
||||||
void SBC16(PAIR &r);
|
void sbc_hl(PAIR &r);
|
||||||
UINT8 RLC(UINT8 value);
|
UINT8 rlc(UINT8 value);
|
||||||
UINT8 RRC(UINT8 value);
|
UINT8 rrc(UINT8 value);
|
||||||
UINT8 RL(UINT8 value);
|
UINT8 rl(UINT8 value);
|
||||||
UINT8 RR(UINT8 value);
|
UINT8 rr(UINT8 value);
|
||||||
UINT8 SLA(UINT8 value);
|
UINT8 sla(UINT8 value);
|
||||||
UINT8 SRA(UINT8 value);
|
UINT8 sra(UINT8 value);
|
||||||
UINT8 SLL(UINT8 value);
|
UINT8 sll(UINT8 value);
|
||||||
UINT8 SRL(UINT8 value);
|
UINT8 srl(UINT8 value);
|
||||||
void BIT(int bit, UINT8 value);
|
void bit(int bit, UINT8 value);
|
||||||
void BIT_HL(int bit, UINT8 value);
|
void bit_hl(int bit, UINT8 value);
|
||||||
void BIT_XY(int bit, UINT8 value);
|
void bit_xy(int bit, UINT8 value);
|
||||||
UINT8 RES(int bit, UINT8 value);
|
UINT8 res(int bit, UINT8 value);
|
||||||
UINT8 SET(int bit, UINT8 value);
|
UINT8 set(int bit, UINT8 value);
|
||||||
void LDI();
|
void ldi();
|
||||||
void CPI();
|
void cpi();
|
||||||
void INI();
|
void ini();
|
||||||
void OUTI();
|
void outi();
|
||||||
void LDD();
|
void ldd();
|
||||||
void CPD();
|
void cpd();
|
||||||
void IND();
|
void ind();
|
||||||
void OUTD();
|
void outd();
|
||||||
void LDIR();
|
void ldir();
|
||||||
void CPIR();
|
void cpir();
|
||||||
void INIR();
|
void inir();
|
||||||
void OTIR();
|
void otir();
|
||||||
void LDDR();
|
void lddr();
|
||||||
void CPDR();
|
void cpdr();
|
||||||
void INDR();
|
void indr();
|
||||||
void OTDR();
|
void otdr();
|
||||||
void EI();
|
void ei();
|
||||||
|
|
||||||
void take_interrupt();
|
void take_interrupt();
|
||||||
|
|
||||||
@ -304,6 +301,4 @@ protected:
|
|||||||
|
|
||||||
extern const device_type NSC800;
|
extern const device_type NSC800;
|
||||||
|
|
||||||
#pragma pop_macro("BIT")
|
|
||||||
|
|
||||||
#endif /* __Z80_H__ */
|
#endif /* __Z80_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user