Exemplo n.º 1
0
 /// <summary>
 /// Emits a new data byte
 /// </summary>
 /// <param name="data"></param>
 public bool EmitByte(byte data)
 {
     EmittedCode.Add(data);
     if (StartAddress + EmittedCode.Count > 0x10000 && !OverflowDetected)
     {
         OverflowDetected = true;
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Emits a new data byte
 /// </summary>
 /// <param name="data"></param>
 public string EmitByte(byte data)
 {
     EmittedCode.Add(data);
     if (StartAddress + EmittedCode.Count > 0x10000 && !OverflowDetected)
     {
         OverflowDetected = true;
         return(Errors.Z0304);
     }
     if (EmittedCode.Count > MaxCodeLength && !OverflowDetected)
     {
         OverflowDetected = true;
         return(Errors.Z0309);
     }
     return(null);
 }