示例#1
0
文件: sh4_dev.cpp 项目: MarginC/kame
void
SH4dev::dump(u_int8_t bit)
{
    int kmode;

    super::dump(bit);

    kmode = SetKMode(1);
    if (bit & DUMP_DEV) {
        // INTC
        icu_dump();
    }

    if (bit & DUMP_COMPANION) {
        // HD64465
        hd64465_dump();
    }

    if (bit & DUMP_VIDEO) {
        // MQ100
        mq100_dump();
    }

    SetKMode(kmode);

}
void
SH3dev::dump(uint8_t bit)
{
	int kmode;

	super::dump(bit);

	kmode = SetKMode(1);

	if (bit & DUMP_DEV) {
		// INTC
		icu_dump();

		// BSC
		bsc_dump();

		// TMU
		tmu_dump();

		// PFC , I/O port
		pfc_dump();
	}

	if (bit & DUMP_COMPANION) {
		// HD64461
		platid_t platform;
		platform.dw.dw0 = _menu->_pref.platid_hi;
		platform.dw.dw1 = _menu->_pref.platid_lo;
		hd64461_dump(platform);
	}

	SetKMode(kmode);
}