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