Exemplo n.º 1
0
        public ROMmodule(CPUBase cpu, string sFilename, UInt16 uiAddress)
        {
            m_ROM    = Utilities.loadBinaryFile(sFilename);
            m_Offset = uiAddress;

            UInt16 uiEnd = uiAddress;

            uiEnd += (UInt16)m_ROM.Length;
            uiEnd--;

            cpu.registerMemoryAccess(uiAddress, uiEnd, read, write);
        }
Exemplo n.º 2
0
        public RAMextension(CPUBase cpu, UInt16 uiAddress, UInt16 SizeKB)
        {
            m_RAM    = new byte[SizeKB * 1024];
            m_Offset = uiAddress;

            UInt16 uiEnd = uiAddress;

            uiEnd += (UInt16)m_RAM.Length;
            uiEnd--;

            cpu.registerMemoryAccess(uiAddress, uiEnd, read, write);
        }