public void ResetAdditionMemory() { string[] splitAdditionAddress = AdditionAddress.Split(" "); string[] splitTermAddress = TermAddress.Split(" "); Image.WriteByte("A9"); Image.WriteByte("00"); Image.WriteByte("8D"); Image.WriteByte(splitAdditionAddress[0]); Image.WriteByte(splitAdditionAddress[1]); Image.WriteByte("A9"); Image.WriteByte("00"); Image.WriteByte("8D"); Image.WriteByte(splitTermAddress[0]); Image.WriteByte(splitTermAddress[1]); }
public void HandleAddition(ASTNode node) { AdditionTreeStream = new List <int> (); string[] splitAdditionAddress = AdditionAddress.Split(" "); string[] splitTermAddress = TermAddress.Split(" "); Traverse(node, CreateAdditionTreeStream); foreach (var item in AdditionTreeStream) { Image.WriteByte("A9"); Image.WriteByte(item.ToString("X2")); Image.WriteByte("8D"); Image.WriteByte(splitTermAddress[0]); Image.WriteByte(splitTermAddress[1]); Image.WriteByte("AD"); Image.WriteByte(splitAdditionAddress[0]); Image.WriteByte(splitAdditionAddress[1]); Image.WriteByte("6D"); Image.WriteByte(splitTermAddress[0]); Image.WriteByte(splitTermAddress[1]); Image.WriteByte("8D"); Image.WriteByte(splitAdditionAddress[0]); Image.WriteByte(splitAdditionAddress[1]); } }