mirror of
https://github.com/fadden/6502bench.git
synced 2024-11-26 21:49:45 +00:00
3c3209b67f
We were providing platform symbols to plugins through the PlatSym list, which allowed them to find constants and well-known addresses. We now pass all project symbols and user labels in as well. The name "PlatSym" is no longer accurate, so the class has been renamed. Also, added a bunch of things to the problem list viewer, and added some more info to the Info panel. Also, added a minor test to 2011-hinting that does not affect the output (which is the point).
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
// Copyright 2018 faddenSoft. All Rights Reserved.
|
|
// See the LICENSE.txt file for distribution terms (Apache 2.0).
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using PluginCommon;
|
|
|
|
namespace RuntimeData.Test2011 {
|
|
public class Test2011 : MarshalByRefObject, IPlugin, IPlugin_InlineJsr {
|
|
private IApplication mAppRef;
|
|
private byte[] mFileData;
|
|
|
|
public string Identifier {
|
|
get {
|
|
return "Test 2011-hinting";
|
|
}
|
|
}
|
|
|
|
public void Prepare(IApplication appRef, byte[] fileData, List<PlSymbol> plSymbols) {
|
|
mAppRef = appRef;
|
|
mFileData = fileData;
|
|
|
|
mAppRef.DebugLog("Test2011(id=" + AppDomain.CurrentDomain.Id + "): prepare()");
|
|
}
|
|
|
|
public void CheckJsr(int offset, out bool noContinue) {
|
|
noContinue = false;
|
|
if (offset + 7 < mFileData.Length &&
|
|
mFileData[offset + 1] == 0x56 && mFileData[offset + 2] == 0x24) {
|
|
mAppRef.SetInlineDataFormat(offset + 3, 4, DataType.NumericLE,
|
|
DataSubType.None, null);
|
|
}
|
|
}
|
|
}
|
|
}
|