﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace elbgb_core.Memory
{
	class NullCartridge : Cartridge
	{
		public NullCartridge(CartridgeHeader header, byte[] romData)
			: base(header, romData)
		{

		}

		public override byte ReadByte(ushort address)
		{
			return 0;
		}

		public override void WriteByte(ushort address, byte value)
		{
			return;
		}
	}
}

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace elbgb_core.Memory
{
	class NullCartridge : Cartridge
	{
		public NullCartridge(CartridgeHeader header, byte[] romData)
			: base(header, romData)
		{

		}

		public override byte ReadByte(ushort address)
		{
			return 0xFF;
		}

		public override void WriteByte(ushort address, byte value)
		{
			return;
		}
	}
}

Return 0xFF for an undefined cartridge read rather than 0x00
Return 0xFF for an undefined cartridge read rather than 0x00
