示例#1
0
        /*************************************
        *
        *  statics
        *
        *************************************/

        uint8_t memory_read_byte(offs_t offset)
        {
            address_space prog_space = m_maincpu.op0.memory().space(AS_PROGRAM);

            return(prog_space.read_byte(offset));
        }
示例#2
0
        /*************************************
        *
        *  statics
        *
        *************************************/

        //READ8_MEMBER(dkong_state::memory_read_byte)
        public u8 memory_read_byte(address_space space, offs_t offset, u8 mem_mask = 0xff)
        {
            address_space prog_space = m_maincpu.target.GetClassInterface <device_memory_interface>().space(AS_PROGRAM);

            return(prog_space.read_byte(offset));
        }