Exemple #1
0
        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());
        }
Exemple #2
0
 public static string Global(IZGlobals globals, byte globalNumb)
 => $"  #{Byte(globalNumb)} = {Word(globals.Get(globalNumb))}";