public static string Globals(IZGlobals globals) { var sb = new StringBuilder(); for (byte i = 0; i < ZGlobals.NumberOfGlobals; i++) { sb.AppendLine($" {Global(globals, i)}"); } return(sb.ToString()); }
public static string Global(IZGlobals globals, byte globalNumb) => $" #{Byte(globalNumb)} = {Word(globals.Get(globalNumb))}";