/// <summary> /// HLT /// </summary> /// <param name="context"></param> /// <returns></returns> public override Result VisitSTORE(LowLevelAssemblyParser.STOREContext context) { string sourceRegister = context.register_8bit().GetText(); string opcode = "10011"; opcode += GetRegisterOpCode_GeneralPurpose(sourceRegister); opcode += " ; STORE " + sourceRegister; assembly.Add(opcode); return(base.VisitSTORE(context)); }
/// <summary> /// Visit a parse tree produced by <see cref="LowLevelAssemblyParser.STORE"/>. /// <para> /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> /// on <paramref name="context"/>. /// </para> /// </summary> /// <param name="context">The parse tree.</param> /// <return>The visitor result.</return> public virtual Result VisitSTORE([NotNull] LowLevelAssemblyParser.STOREContext context) { return(VisitChildren(context)); }