private void StoreGlobals(byte dest, byte value) { var globalsIdx = ZGlobals.GetGlobalsNumber(dest); Log.Write($"-> GLB{globalsIdx:X2} = ({value:X2}), "); _globals.Set(globalsIdx, value); }
public static byte VariableId(byte dest) { var variableDestinations = VariableDestination(dest); return(variableDestinations == VariableDestinations.Local ? (byte)0 : variableDestinations == VariableDestinations.Variable ? (byte)(dest - 1) : ZGlobals.GetGlobalsNumber(dest)); }
public VariableManager(IZStack stack, ZGlobals globals) { _globals = globals; _stack = stack; }
private void StoreInGlobals(byte dest, ushort value) { Log.Write($"-> GLB{ZGlobals.GetGlobalsNumber(dest):X2} ({value:X4}), "); _globals.Set(ZGlobals.GetGlobalsNumber(dest), value); }