1
0
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:
Andy McFadden 2019-10-06 17:32:20 -07:00
parent 8c87ce3004
commit 997242361a
3 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,7 @@ using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
namespace SourceGen { namespace CommonUtil {
/// <summary> /// <summary>
/// Map file offsets to 65xx addresses and vice-versa. Useful for sources with /// Map file offsets to 65xx addresses and vice-versa. Useful for sources with
/// multiple ORG directives. /// multiple ORG directives.
@ -28,6 +28,10 @@ namespace SourceGen {
/// it's useful to know the offset of the referring code when evaluating a /// it's useful to know the offset of the referring code when evaluating a
/// reference, so that a "local" match can take priority. /// reference, so that a "local" match can take priority.
/// </summary> /// </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> { public class AddressMap : IEnumerable<AddressMap.AddressMapEntry> {
/// <summary> /// <summary>
/// Code starting at the specified offset will have the specified address. /// Code starting at the specified offset will have the specified address.

View File

@ -20,6 +20,7 @@ using System.Windows.Media;
using System.Text; using System.Text;
using Asm65; using Asm65;
using CommonUtil;
using FormattedParts = SourceGen.DisplayList.FormattedParts; using FormattedParts = SourceGen.DisplayList.FormattedParts;
namespace SourceGen { namespace SourceGen {

View File

@ -59,7 +59,6 @@
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType> <SubType>Designer</SubType>
</ApplicationDefinition> </ApplicationDefinition>
<Compile Include="AddressMap.cs" />
<Compile Include="Anattrib.cs" /> <Compile Include="Anattrib.cs" />
<Compile Include="App.xaml.cs"> <Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon> <DependentUpon>App.xaml</DependentUpon>