mirror of
https://github.com/fadden/6502bench.git
synced 2024-11-30 01:50:10 +00:00
365864ccdf
Implemented Apple II hi-res bitmap conversion. Supports B&W and color. Uses essentially the same algorithm as CiderPress. Experimented with displaying non-text items in ListView. I assumed it would work, since it's the sort of thing WPF is designed to do, but it's always wise to approach with caution. Visualization Sets now show a 64x64 button as a placeholder for the eventual thumbnail. Some things were being flaky, which turned out to be because I wasn't Prepare()ing the plugins before using them from Edit Visualization. To make this a deterministic failure I added an Unprepare() call that tells the plugin that we're all done. NOTE: this breaks all existing plugins.
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.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, AddressTranslate addrTrans) {
|
|
mAppRef = appRef;
|
|
mFileData = fileData;
|
|
|
|
mAppRef.DebugLog("Test2011(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);
|
|
}
|
|
}
|
|
}
|
|
}
|