mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-01 22:50:35 +00:00
67c713ea7d
Replace "hint" in a few more places. Mention W65C02 in main README. State that new PRG feature is only enabled for 64tass.
43 lines
1.2 KiB
C#
43 lines
1.2 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.Test20070 {
|
|
public class Test20070 : MarshalByRefObject, IPlugin, IPlugin_InlineJsr {
|
|
private IApplication mAppRef;
|
|
private byte[] mFileData;
|
|
|
|
public string Identifier {
|
|
get {
|
|
return "Test 20070-hinting";
|
|
}
|
|
}
|
|
|
|
public void Prepare(IApplication appRef, byte[] fileData, AddressTranslate addrTrans) {
|
|
mAppRef = appRef;
|
|
mFileData = fileData;
|
|
|
|
mAppRef.DebugLog("Test20070(id=" + AppDomain.CurrentDomain.Id + "): prepare()");
|
|
}
|
|
|
|
public void Unprepare() {
|
|
mAppRef = null;
|
|
mFileData = null;
|
|
}
|
|
|
|
public void CheckJsr(int offset, int operand, out bool noContinue) {
|
|
int ADDR = 0x2456;
|
|
|
|
noContinue = false;
|
|
if (offset + 7 < mFileData.Length && operand == ADDR) {
|
|
mAppRef.SetInlineDataFormat(offset + 3, 4, DataType.NumericLE,
|
|
DataSubType.None, null);
|
|
}
|
|
}
|
|
}
|
|
}
|