mirror of
https://github.com/fadden/6502bench.git
synced 2024-11-26 06:49:19 +00:00
Relocate AddressMap to CommonUtil
This allows us to use it in plugins.
This commit is contained in:
parent
8c87ce3004
commit
997242361a
@ -18,7 +18,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace SourceGen {
|
||||
namespace CommonUtil {
|
||||
/// <summary>
|
||||
/// Map file offsets to 65xx addresses and vice-versa. Useful for sources with
|
||||
/// multiple ORG directives.
|
||||
@ -28,6 +28,10 @@ namespace SourceGen {
|
||||
/// it's useful to know the offset of the referring code when evaluating a
|
||||
/// reference, so that a "local" match can take priority.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This was part of the main SourceGen application, but I want to share it with
|
||||
/// script extensions.
|
||||
/// </remarks>
|
||||
public class AddressMap : IEnumerable<AddressMap.AddressMapEntry> {
|
||||
/// <summary>
|
||||
/// Code starting at the specified offset will have the specified address.
|
@ -20,6 +20,7 @@ using System.Windows.Media;
|
||||
using System.Text;
|
||||
|
||||
using Asm65;
|
||||
using CommonUtil;
|
||||
using FormattedParts = SourceGen.DisplayList.FormattedParts;
|
||||
|
||||
namespace SourceGen {
|
||||
|
@ -59,7 +59,6 @@
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
<Compile Include="AddressMap.cs" />
|
||||
<Compile Include="Anattrib.cs" />
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
|
Loading…
Reference in New Issue
Block a user