22 lines
489 B
C#
22 lines
489 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace ParsonsMegadrive.Core.Interfaces
|
|
{
|
|
public interface IMemoryBus
|
|
{
|
|
// 8-bit (Byte)
|
|
byte Read8(uint address);
|
|
void Write8(uint address, byte value);
|
|
|
|
// 16-bit (Word)
|
|
ushort Read16(uint address);
|
|
void Write16(uint address, ushort value);
|
|
|
|
// 32-bit (Long)
|
|
uint Read32(uint address);
|
|
void Write32(uint address, uint value);
|
|
}
|
|
}
|