-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement memorybus interface for abstraction
- Loading branch information
Showing
3 changed files
with
75 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace Apollo.Virtual.AGC.Memory | ||
{ | ||
public interface IMemoryBus | ||
{ | ||
OnesCompliment this[ushort a] { get; set; } | ||
int MaxAddress { get; } | ||
|
||
/// <summary> | ||
/// The AGC has memory mapped registerss, so they need a method to regiser themselves to the MemoryBus | ||
/// </summary> | ||
/// <typeparam name="RegisterType"></typeparam> | ||
/// <param name="address"></param> | ||
/// <returns></returns> | ||
RegisterType MapRegister<RegisterType>(ushort address) where RegisterType : MemoryWord; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters