Mother2GbaTranslation/tools/ScriptTool/IControlCode.cs

27 lines
877 B
C#
Raw Normal View History

2015-03-16 04:16:12 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ScriptTool
{
2015-03-20 15:45:23 +00:00
public interface IControlCode
2015-03-16 04:16:12 +00:00
{
bool IsEnd { get; }
2015-03-22 23:55:34 +00:00
bool IsCompressedString { get; }
2015-03-16 04:16:12 +00:00
bool IsMatch(byte[] rom, int address);
bool IsMatch(string[] codeStrings);
bool IsValid(string[] codeStrings);
2015-03-22 23:55:34 +00:00
bool HasReferences { get; }
bool AbsoluteAddressing { get; }
2015-03-25 02:02:27 +00:00
bool SuppressNextEnd { get; }
2015-03-22 23:55:34 +00:00
2015-03-16 04:16:12 +00:00
int ComputeLength(byte[] rom, int address);
IList<int> GetReferences(byte[] rom, int address);
IList<CodeString> GetCodeStrings(byte[] rom, int address);
2015-03-22 23:55:34 +00:00
string GetCompressedString(byte[] rom, int address);
void Compile(string[] codeStrings, IList<byte> buffer, ref int referenceAddress, IDictionary<string, int> addressMap);
2015-03-16 04:16:12 +00:00
}
}