mirror of
https://github.com/fadden/6502bench.git
synced 2025-09-29 18:16:29 +00:00
Add multi-inline extension script to tutorial
It's useful to have an example of an extension script that handles multiple types of things. It's also good to show that scripts can handle data types other than strings, and can chase an address to format data items elsewhere in the code. This required updating the tutorial binary, adding the new script, and updating the tutorial text and associated screen shots.
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using PluginCommon;
|
||||
|
||||
namespace ExtensionScriptSample {
|
||||
@@ -41,6 +40,7 @@ namespace ExtensionScriptSample {
|
||||
public void UpdateSymbolList(List<PlSymbol> plSyms) {
|
||||
mNullStringAddrs.Clear();
|
||||
|
||||
// Find matching symbols.
|
||||
foreach (PlSymbol sym in plSyms) {
|
||||
if (sym.Label.StartsWith(LABEL_PREFIX)) {
|
||||
mNullStringAddrs.Add(sym.Value, sym);
|
||||
@@ -61,7 +61,7 @@ namespace ExtensionScriptSample {
|
||||
// search for the terminating null byte
|
||||
int nullOff = offset + 3;
|
||||
while (nullOff < mFileData.Length) {
|
||||
if (mFileData[nullOff] == 0) {
|
||||
if (mFileData[nullOff] == 0x00) {
|
||||
break;
|
||||
}
|
||||
nullOff++;
|
||||
|
Reference in New Issue
Block a user